Merge commit 'origin/master' into hruid.
[platal.git] / include / banana / moderate.inc.php
index 688bc94..ffc5eb5 100644 (file)
@@ -89,10 +89,7 @@ class ModerationPage extends BananaPage
 
     public function trig($msg)
     {
-        global $page;
-        if ($page) {
-            $page->trigError($msg);
-        }
+        Platal::page()->trigError($msg);
         return true;
     }
 }