From 9c007ea40578b4fd56e873a765bb787d8825fc35 Mon Sep 17 00:00:00 2001 From: Tom Dicks Date: Thu, 3 Sep 2015 10:41:13 +0100 Subject: [PATCH] Updated $subdir variable to $f Code refactor in 0.9.6.1 changed the way helper classes are loaded and renamed the variable ($subdir) used for the subdirectory in the foreach loop to $f. $subdir remains on line 1304 although it isn't referenced anywhere else in this function. --- includes/CCTM.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/CCTM.php b/includes/CCTM.php index 457c1b1..71e2211 100644 --- a/includes/CCTM.php +++ b/includes/CCTM.php @@ -1318,7 +1318,7 @@ public static function get_available_helper_classes($type) { if ( !preg_match('/^\./', $f2) && preg_match('/\.class\.php$/', $f2) ) { $shortname = basename($f2); $shortname = preg_replace('/\.class\.php$/', '', $shortname); - $files[$shortname] = $dir.'/'.$subdir.'/'.$f2; + $files[$shortname] = $dir.'/'.$f.'/'.$f2; } } }