mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Misc/Fixup
* prevent direct access to some internal files where applicable and reword error for others * if CFG_DEBUG is set also enable debug in client javascript * non-breaking formatting changes * define regions and missing locales for later use
This commit is contained in:
@@ -213,7 +213,7 @@ class AdminPage extends GenericPage
|
||||
$ssData = [];
|
||||
$nMatches = 0;
|
||||
|
||||
if ($this->_get['type'] && $this->_get['typeId'])
|
||||
if ($this->_get['type'] && $this->_get['typeid'])
|
||||
{
|
||||
$ssData = CommunityContent::getScreenshotsForManager($this->_get['type'], $this->_get['typeid']);
|
||||
$nMatches = count($ssData);
|
||||
|
||||
@@ -430,8 +430,8 @@ class ItemPage extends genericPage
|
||||
if ($prev['jsonequip'] == $cur['jsonequip'] && $prev['name'] == $cur['name'])
|
||||
{
|
||||
$prev['chance'] += $cur['chance'];
|
||||
array_splice($this->subItems['data'], $i , 1);
|
||||
array_splice($this->subItems['randIds'], $i , 1);
|
||||
array_splice($this->subItems['data'], $i, 1);
|
||||
array_splice($this->subItems['randIds'], $i, 1);
|
||||
$i = 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user