Merged in Namespace_* support; here ends compatibility before 1.1.6 trunk
authorDan
Mon, 30 Mar 2009 00:31:33 -0400
changeset 11 b0995e600bde
parent 9 162b0f10e3d0
child 12 62c594682bf6
Merged in Namespace_* support; here ends compatibility before 1.1.6 trunk
plugins/Newsboy.php
--- a/plugins/Newsboy.php	Mon Dec 22 14:30:59 2008 -0500
+++ b/plugins/Newsboy.php	Mon Mar 30 00:31:33 2009 -0400
@@ -70,7 +70,7 @@
   
 }
 
-function NewsBoy_namespace_handler($page)
+function NewsBoy_namespace_handler(&$page)
 {
   global $db, $session, $paths, $template, $plugins; // Common objects
   
@@ -192,6 +192,24 @@
   }
 }
 
+class Namespace_NewsBoy extends Namespace_Default
+{
+  public $perms;
+  
+  function __construct($a, $b, $c = 0)
+  {
+    global $db, $session, $paths, $template, $plugins; // Common objects
+    
+    parent::__construct($a, $b, $c);
+    $this->perms = $session->fetch_page_acl($this->page_id, $this->namespace);
+  }
+  
+  function send()
+  {
+    NewsBoy_namespace_handler($this);
+  }
+}
+
 function NewsBoy_set_page_string()
 {
   global $db, $session, $paths, $template, $plugins; // Common objects