diff -r 162b0f10e3d0 -r b0995e600bde 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