CC-4383: Fatal error in phone_home_stat script (2.2.0 dev)

- fixed
This commit is contained in:
James 2012-09-10 11:28:35 -04:00
parent 95cd5a7dde
commit dcf3b4c3de
1 changed files with 8 additions and 0 deletions

View File

@ -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');