mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Misc/Cleanup
* moving commonly used strings to defines * moving commonly reused/similar page generation functions to the parent * generally using consistent return types, more type hints and less strings * prevent browser context menu when right clicking on UI elements with their own context menus * fixed menu path for icons
This commit is contained in:
@@ -177,7 +177,7 @@ set_exception_handler(function ($ex)
|
||||
);
|
||||
|
||||
if (!CLI)
|
||||
(new GenericPage(null))->error();
|
||||
(new GenericPage())->error();
|
||||
else
|
||||
echo 'Exception - '.$ex->getMessage()."\n ".$ex->getFile(). '('.$ex->getLine().")\n".$ex->getTraceAsString()."\n";
|
||||
});
|
||||
@@ -244,7 +244,7 @@ if (!CLI)
|
||||
$str = explode('&', mb_strtolower($_SERVER['QUERY_STRING']), 2)[0];
|
||||
$_ = explode('=', $str, 2);
|
||||
$pageCall = $_[0];
|
||||
$pageParam = isset($_[1]) ? $_[1] : null;
|
||||
$pageParam = isset($_[1]) ? $_[1] : '';
|
||||
|
||||
Util::$wowheadLink = 'http://'.Util::$subDomains[User::$localeId].'.wowhead.com/'.$str;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user