Commit 7d29f719 authored by Tobias Buckdahn's avatar Tobias Buckdahn

Make abstract methods static

parent 0cda086b
...@@ -44,7 +44,7 @@ abstract class Terms ...@@ -44,7 +44,7 @@ abstract class Terms
return array_keys($result); return array_keys($result);
} }
public function getImage($taxonomy, $term, $ext='png') public static function getImage($taxonomy, $term, $ext='png')
{ {
// try specific folder // try specific folder
$folder = Grav::instance()['page']->find('/images/tax-' . strtolower($taxonomy)); $folder = Grav::instance()['page']->find('/images/tax-' . strtolower($taxonomy));
...@@ -88,7 +88,7 @@ abstract class Terms ...@@ -88,7 +88,7 @@ abstract class Terms
} }
} }
public function getTitle($taxonomy, $term) public static function getTitle($taxonomy, $term)
{ {
// cache title list if necessary // cache title list if necessary
if (! isset(self::$_nameList[$taxonomy])) { if (! isset(self::$_nameList[$taxonomy])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment