From dcf3b4c3de43ec9f4695f3d01ac6d60c79ce1cff Mon Sep 17 00:00:00 2001 From: James Date: Mon, 10 Sep 2012 11:28:35 -0400 Subject: [PATCH] CC-4383: Fatal error in phone_home_stat script (2.2.0 dev) - fixed --- utils/phone_home_stat.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/utils/phone_home_stat.php b/utils/phone_home_stat.php index f720f0dd0..d01a736c1 100644 --- a/utils/phone_home_stat.php +++ b/utils/phone_home_stat.php @@ -35,6 +35,14 @@ get_include_path(), realpath($CC_CONFIG['phpDir'] . '/library') ))); +function __autoload($classname){ + global $CC_CONFIG; + $info = explode('_', $classname); + if (isset($info[2])) { + $filename = $info[2].".php"; + require_once($CC_CONFIG['phpDir'].'/application/models/'.$filename); + } +} require_once($CC_CONFIG['phpDir'].'/application/models/User.php'); require_once($CC_CONFIG['phpDir'].'/application/models/StoredFile.php'); require_once($CC_CONFIG['phpDir'].'/application/models/Playlist.php');