mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-12-01 21:15:20 +08:00
Misc/Fixups
* lost changes
This commit is contained in:
@@ -150,7 +150,7 @@ class CommunityContent
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getCommentPreviews(array $params = [], int &$nFound = 0, bool $dateFmt = true) : array
|
public static function getCommentPreviews(array $params = [], ?int &$nFound = 0, bool $dateFmt = true) : array
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
purged:0, <- doesnt seem to be used anymore
|
purged:0, <- doesnt seem to be used anymore
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ class ComparePage extends GenericPage
|
|||||||
|
|
||||||
protected function generatePath() {}
|
protected function generatePath() {}
|
||||||
|
|
||||||
private function checkCompareString(string $val) : string
|
protected static function checkCompareString(string $val) : string
|
||||||
{
|
{
|
||||||
$val = urldecode($val);
|
$val = urldecode($val);
|
||||||
if (preg_match('/[^\d\.:;]/', $val))
|
if (preg_match('/[^\d\.:;]/', $val))
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ class EnchantmentsPage extends GenericPage
|
|||||||
protected $path = [0, 101];
|
protected $path = [0, 101];
|
||||||
protected $tabId = 0;
|
protected $tabId = 0;
|
||||||
protected $mode = CACHE_TYPE_PAGE;
|
protected $mode = CACHE_TYPE_PAGE;
|
||||||
protected $js =[JS_FILE, 'filters.js']];
|
protected $js = [[JS_FILE, 'filters.js']];
|
||||||
|
|
||||||
protected $_get = ['filter' => ['filter' => FILTER_UNSAFE_RAW]];
|
protected $_get = ['filter' => ['filter' => FILTER_UNSAFE_RAW]];
|
||||||
|
|
||||||
|
|||||||
@@ -562,7 +562,7 @@ class SearchPage extends GenericPage
|
|||||||
$cnd[] = ['i.class', [ITEM_CLASS_WEAPON, ITEM_CLASS_GEM, ITEM_CLASS_ARMOR]];
|
$cnd[] = ['i.class', [ITEM_CLASS_WEAPON, ITEM_CLASS_GEM, ITEM_CLASS_ARMOR]];
|
||||||
$cnd[] = $cndAdd;
|
$cnd[] = $cndAdd;
|
||||||
|
|
||||||
if ($_ = array_filter($this->_get['slots']))
|
if ($_ = array_filter($this->_get['slots'] ?? []))
|
||||||
$cnd[] = ['slot', $_];
|
$cnd[] = ['slot', $_];
|
||||||
|
|
||||||
// trick ItemListFilter into evaluating weights
|
// trick ItemListFilter into evaluating weights
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ class TalentPage extends GenericPage
|
|||||||
|
|
||||||
if ($this->isPetCalc)
|
if ($this->isPetCalc)
|
||||||
$this->addScript(
|
$this->addScript(
|
||||||
[JS_FILE, 'swfobject.css'],
|
[JS_FILE, 'swfobject.js'],
|
||||||
[CSS_FILE, 'petcalc.css']
|
[CSS_FILE, 'petcalc.css']
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ class UserPage extends GenericPage
|
|||||||
$buff[] = '[tooltip=tooltip_pending]'.$ss['nPending'].'[/tooltip]';
|
$buff[] = '[tooltip=tooltip_pending]'.$ss['nPending'].'[/tooltip]';
|
||||||
}
|
}
|
||||||
|
|
||||||
$contrib[] = Lang::user('screenshots').Lang::main('colon').$ss['sum'].($buff ? ' [small]('.implode($buff, ' + ').')[/small]' : null);
|
$contrib[] = Lang::user('screenshots').Lang::main('colon').$ss['sum'].($buff ? ' [small]('.implode(' + ', $buff).')[/small]' : null);
|
||||||
}
|
}
|
||||||
|
|
||||||
$vi = DB::Aowow()->selectRow('SELECT COUNT(id) AS sum, SUM(IF(status & ?d, 1, 0)) AS nSticky, SUM(IF(status & ?d, 0, 1)) AS nPending FROM ?_videos WHERE userIdOwner = ?d AND (status & ?d) = 0',
|
$vi = DB::Aowow()->selectRow('SELECT COUNT(id) AS sum, SUM(IF(status & ?d, 1, 0)) AS nSticky, SUM(IF(status & ?d, 0, 1)) AS nPending FROM ?_videos WHERE userIdOwner = ?d AND (status & ?d) = 0',
|
||||||
@@ -111,7 +111,7 @@ class UserPage extends GenericPage
|
|||||||
$buff[] = '[tooltip=tooltip_pending]'.$vi['nPending'].'[/tooltip]';
|
$buff[] = '[tooltip=tooltip_pending]'.$vi['nPending'].'[/tooltip]';
|
||||||
}
|
}
|
||||||
|
|
||||||
$contrib[] = Lang::user('videos').Lang::main('colon').$vi['sum'].($buff ? ' [small]('.implode($buff, ' + ').')[/small]' : null);
|
$contrib[] = Lang::user('videos').Lang::main('colon').$vi['sum'].($buff ? ' [small]('.implode(' + ', $buff).')[/small]' : null);
|
||||||
}
|
}
|
||||||
|
|
||||||
// contrib -> Forum posts: 5769 [small]([tooltip=topics]579[/tooltip] + [tooltip=replies]5190[/tooltip])[/small]
|
// contrib -> Forum posts: 5769 [small]([tooltip=topics]579[/tooltip] + [tooltip=replies]5190[/tooltip])[/small]
|
||||||
|
|||||||
Reference in New Issue
Block a user