plugins/Newsboy.php
changeset 6 432eed804b7f
parent 5 fed61fc8895b
child 7 c3710cbed6d0
--- a/plugins/Newsboy.php	Mon Jan 28 23:02:18 2008 -0500
+++ b/plugins/Newsboy.php	Fri Feb 22 10:46:28 2008 -0500
@@ -284,7 +284,8 @@
     }
   /* } */
   
-  $s = $paths->nslist['NewsBoy'] . 'Announce';
+  $announce_page_default = $paths->nslist['NewsBoy'] . 'Announce';
+  $s = $announce_page_default;
   $announce_page = getConfig('nb_announce_page');
   if ( !empty($announce_page) && isPage($announce_page) )
   {
@@ -304,6 +305,10 @@
     $content = '?>' . RenderMan::render($content);
     eval($content);
   }
+  else
+  {
+    $stuff = RenderMan::strToPageID($announce_page_default);
+  }
   
   if ( file_exists( ENANO_ROOT . "/themes/{$template->theme}/newsboy-portal-pre.tpl" ) )
   {
@@ -412,7 +417,6 @@
             </table>
           </div><br />';
   }
-  show_category_info();
 }
 
 /**