Misc/Fixups

* added forgotten mapper strings for esES, ruRU, frFR
 * readded default name for screenshots and videos tab
 * fixed referencing not set $id in opensearch (wich now displays icons once again)
 * fixed referencing a long removed variable in admin=screenshots, preventing delete operations
This commit is contained in:
Sarjuuk
2016-03-23 22:10:28 +01:00
parent 44c90b71fa
commit c75777e5c3
6 changed files with 21 additions and 15 deletions

View File

@@ -19,7 +19,7 @@ class AjaxAdmin extends AjaxHandler
protected $_post = array(
'alt' => [FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW],
'id' => [FILTER_SANITIZE_NUMBER_INT, null],
'scale' => [FILTER_CALLBACK, ['options' => 'AjaxAccount::checkScale']],
'scale' => [FILTER_CALLBACK, ['options' => 'AjaxAdmin::checkScale']],
'__icon' => [FILTER_CALLBACK, ['options' => 'AjaxAdmin::checkKey']],
);
@@ -237,7 +237,7 @@ class AjaxAdmin extends AjaxHandler
}
// flag as deleted if not aready
DB::Aowow()->query('UPDATE ?_screenshots SET status = ?d, userIdDelete = ?d WHERE id IN (?a)', CC_FLAG_DELETED, User::$id, $ids);
DB::Aowow()->query('UPDATE ?_screenshots SET status = ?d, userIdDelete = ?d WHERE id IN (?a)', CC_FLAG_DELETED, User::$id, $this->_get['id']);
return '';
}