Final fixes

(cherry picked from commit 58b3caf)
This commit is contained in:
DariusIII
2015-06-24 00:39:53 +02:00
parent 9530efa415
commit 7394108d36
2 changed files with 1 additions and 31 deletions
-30
View File
@@ -1,30 +0,0 @@
<?php
spl_autoload_register(
function($className)
{
if ($className == 'Smarty') {
$className = 'Smarty.class';
}
$paths = array(
SMARTY_DIR,
NN_WWW . 'pages' . DIRECTORY_SEPARATOR,
SMARTY_DIR . 'plugins' . DIRECTORY_SEPARATOR,
SMARTY_DIR . 'sysplugins' . DIRECTORY_SEPARATOR
);
foreach ($paths as $path)
{
$spec = str_replace('\\', DIRECTORY_SEPARATOR, $path . strtolower($className) . '.php');
if (file_exists($spec)) {
require_once $spec;
break;
} else if (NN_LOGAUTOLOADER) {
var_dump($spec);
}
}
}
);
?>
+1 -1
View File
@@ -115,7 +115,7 @@ if (is_file($settings_file)) {
unset($settings_file);
require_once NN_CORE . 'autoloader.php';
require_once NN_LIBS . 'autoloader.php';
require_once SMARTY_DIR . 'Autoloader.php';
require_once SMARTY_DIR . 'autoloader.php';
define('HAS_WHICH', newznab\utility\Utility::hasWhich() ? true : false);