Ticket #10 (fixed enhancement)
substr in forum_clear_cache can be simplified
- Created: 2010-05-23 21:44:05
- Reported by: Otomatic
- Assigned to: Reines
- Milestone: 1.4.0
- Component: code
- Priority: lowest
In functions.php, forum_clear_cache() function, there is:
if (substr($entry, strlen($entry)-4) == '.php')
This can be replaced by:
if (substr($entry,-4) == '.php')
If start is negative, the returned string will start at the start'th character from the end of string.