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.
Reines 2010-05-23 22:25:58
- Owner set to Reines.
Reines 2010-05-25 19:31:15
- Status changed from open to fixed.