[SCRIPTS] Make them work in v2 by setting PUBLICDIR
This commit is contained in:
@@ -31,6 +31,7 @@ if (php_sapi_name() !== 'cli') {
|
||||
}
|
||||
|
||||
define('INSTALLDIR', dirname(__DIR__));
|
||||
define('PUBLICDIR', INSTALLDIR . DIRECTORY_SEPARATOR . 'public');
|
||||
set_include_path(get_include_path() . PATH_SEPARATOR . INSTALLDIR . '/extlib');
|
||||
|
||||
require_once INSTALLDIR . '/lib/installer.php';
|
||||
|
Reference in New Issue
Block a user