mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 18:28:54 +00:00
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
?>
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user