Updates and fixes

This commit is contained in:
2020-08-01 23:51:54 -04:00
parent 3265ed85fb
commit 0e732b5891
9 changed files with 117 additions and 1905 deletions
+11 -2
View File
@@ -1,7 +1,7 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
function __autoload($classname) {
/* function __autoload($classname) {
if (strpos($classname, 'CL_') !== 0) {
$file = APPPATH . 'libraries/' . $classname . '.php';
@@ -9,7 +9,16 @@ function __autoload($classname) {
@include_once($file);
}
}
}
} */
spl_autoload_register(function($classname) {
if (strpos($classname, 'CL_') !== 0) {
$file = APPPATH . 'libraries/' . $classname . '.php';
if (file_exists($file) && is_file($file)) {
@include_once($file);
}
}
});
/*
|--------------------------------------------------------------------------