# HG changeset patch # User Dan # Date 1203695188 18000 # Node ID 432eed804b7f48763307d9c6d654eeac7d267e9b # Parent fed61fc8895b4c0f67e227dfddf65b44daab244c Fixed some logic bugs with the announcement page diff -r fed61fc8895b -r 432eed804b7f plugins/Newsboy.php --- 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 @@
'; } - show_category_info(); } /**