Bye xorg.misc.inc.php
[platal.git] / include / wiki.inc.php
index 906c0e1..4c42135 100644 (file)
@@ -138,8 +138,10 @@ function wiki_apply_feed_perms($perm)
     exit;
 }
 
-function wiki_apply_perms($perm) {
-    global $page, $platal, $globals;
+function wiki_apply_perms($perm)
+{
+    global $platal, $globals;
+    $page =& Platal::page();
 
     switch ($perm) {
       case 'public':