mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
Fix crash in customcss
(Introduced in - you guessed it - the directory reorg.)
This commit is contained in:
parent
7732ec78f3
commit
bd134f4ccf
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
ini_set('max_execution_time', 60); // 1 minute
|
||||
|
||||
require_once __DIR__ . '/config/config.inc.php';
|
||||
require_once __DIR__ . '/config/servers.inc.php';
|
||||
require_once __DIR__ . '/../config/config.inc.php';
|
||||
require_once __DIR__ . '/../config/servers.inc.php';
|
||||
|
||||
spl_autoload_register(function ($class) {
|
||||
require_once('lib/css-sanitizer/'.str_replace('\\', DIRECTORY_SEPARATOR, $class).'.php');
|
||||
require_once(__DIR__ . '/../lib/css-sanitizer/'.str_replace('\\', DIRECTORY_SEPARATOR, $class).'.php');
|
||||
});
|
||||
|
||||
use Wikimedia\CSS\Parser\Parser;
|
||||
|
|
@ -32,7 +32,7 @@ if (empty($customcssuri)) {
|
|||
}
|
||||
|
||||
// No need to sanitise $server because it should be safe already.
|
||||
$cssfile = __DIR__ . '/config/customcss/' . $server . '.css';
|
||||
$cssfile = __DIR__ . '/../config/customcss/' . $server . '.css';
|
||||
|
||||
$lastmodified = @filemtime($cssfile);
|
||||
$timenow = time();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user