From e5de7a8a4583d75e833fa84f597b9aa6ed21f97e Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Wed, 29 Mar 2017 18:51:02 +0200 Subject: [PATCH] PHP/Compatibility * should now work with php5 again --- pages/genericPage.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pages/genericPage.class.php b/pages/genericPage.class.php index bd974e6a..ba15d610 100644 --- a/pages/genericPage.class.php +++ b/pages/genericPage.class.php @@ -291,7 +291,10 @@ class GenericPage // determine contribute tabs if (isset($this->subject)) - $this->contribute = $this->subject::$contribute; + { + $x = get_class($this->subject); + $this->contribute = $x::$contribute; + } if (!empty($this->hasComContent)) // get comments, screenshots, videos {