Undefined variable: ext in merge-minify-refresh.php on line 946
-
In
private function get_files_to_minify($ext)
, on line 944
return array_filter(glob(MMR_CACHE_DIR . '/*.' . $ext), function($file) {
change to
array_filter(glob(MMR_CACHE_DIR . '/*.' . $ext), function($file) use ($ext) {
(adduse ($ext)
) otherwise variable$ext
will not be accessible inside a closure.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Undefined variable: ext in merge-minify-refresh.php on line 946’ is closed to new replies.