substr_compare()에서 문제를 일으킬 수 있는 부분 보완.

This commit is contained in:
bnu 2013-11-27 15:16:26 +09:00
parent 3430d4fae5
commit e9dacc6cdf
5 changed files with 8 additions and 7 deletions

View file

@ -2209,11 +2209,11 @@ class Context
$filename = substr($filename, 2);
}
if(substr_compare($filename, '.js', -3, 3, TRUE) === 0)
if(substr_compare($filename, '.js', -3) === 0)
{
$result->jsList[] = $plugin_path . $filename;
}
elseif(substr_compare($filename, '.css', -4, 4, TRUE) === 0)
elseif(substr_compare($filename, '.css', -4) === 0)
{
$result->cssList[] = $plugin_path . $filename;
}