plugins/Newsboy.php
changeset 23 6a501b41907f
parent 22 7f0d9fa561f4
equal deleted inserted replaced
22:7f0d9fa561f4 23:6a501b41907f
   163       parent::__construct($page_id, $namespace, $revision);
   163       parent::__construct($page_id, $namespace, $revision);
   164     }
   164     }
   165     
   165     
   166     function build_cdata()
   166     function build_cdata()
   167     {
   167     {
   168       if ( $this->page_id == 'Portal' || $this->page_id == 'Article' )
   168       list($page_id_base) = explode('/', $this->page_id);
       
   169       if ( $page_id_base == 'Portal' || $page_id_base == 'Article' || $page_id_base == 'Archive' )
   169       {
   170       {
   170         $config_title = getConfig('nb_portal_title');
   171         $config_title = getConfig('nb_portal_title');
   171         $this->cdata = array(
   172         $this->cdata = array(
   172             'urlname' => $this->page_id,
   173             'urlname' => $this->page_id,
   173             'namespace' => $this->namespace,
   174             'namespace' => $this->namespace,