mark static functions as static

This commit is contained in:
Shish 2017-03-10 16:14:56 +00:00
parent 4b9278d09b
commit c208a3715c

View file

@ -175,7 +175,7 @@ class Image {
return $images; return $images;
} }
public function validate_accel($tags) { public static function validate_accel($tags) {
$yays = 0; $yays = 0;
$nays = 0; $nays = 0;
foreach($tags as $tag) { foreach($tags as $tag) {
@ -195,7 +195,7 @@ class Image {
* @return null|PDOStatement * @return null|PDOStatement
* @throws SCoreException * @throws SCoreException
*/ */
public function get_accelerated_result($tags, $offset, $limit) { public static function get_accelerated_result($tags, $offset, $limit) {
global $database; global $database;
if(!Image::validate_accel($tags)) { if(!Image::validate_accel($tags)) {