# HG changeset patch # User Dan # Date 1238387493 14400 # Node ID b0995e600bde8209f847aa2ebdaf4d0a0ed1d10a # Parent 162b0f10e3d0ec39ffc90bc553811f72cfdc13b5 Merged in Namespace_* support; here ends compatibility before 1.1.6 trunk 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