Fix stupid announcement link bug; replace getPage call with PageProcessor
authorDan
Fri, 28 Sep 2007 23:49:56 -0400
changeset 1 540d077b7612
parent 0 9f29b32e5224
child 2 66b299fdb9ca
Fix stupid announcement link bug; replace getPage call with PageProcessor
plugins/Newsboy.php
--- a/plugins/Newsboy.php	Wed Jun 13 22:34:28 2007 -0400
+++ b/plugins/Newsboy.php	Fri Sep 28 23:49:56 2007 -0400
@@ -286,7 +286,8 @@
   if ( $s )
   {
     $stuff = RenderMan::strToPageID($s);
-    $p = RenderMan::getPage($stuff[0], $stuff[1]);
+    $page = new PageProcessor($stuff[0], $stuff[1]);
+    $page->send();
     echo $p;
   }
   
@@ -363,7 +364,7 @@
             <table border="0" cellspacing="1" cellpadding="4">
               <tr>
                 <th>Administrative tools:</th>
-                <td class="row3" style="text-align: center;"><a style="color: inherit;" href="' . makeUrlNS('NewsBoy', 'Announce', '', true) . '#do:edit">Edit announcement &raquo;</a></td>
+                <td class="row3" style="text-align: center;"><a style="color: inherit;" href="' . makeUrlNS($stuff[1], $stuff[0], '', true) . '#do:edit">Edit announcement &raquo;</a></td>
                 <td class="row3" style="text-align: center;"><a style="color: inherit;" href="' . makeUrlNS('Special', 'Administration', 'module='.$paths->nslist['Admin'].'NewsboyItemManager', true) . '" onclick="newsboy_open_admin(); return false;">Portal Administration</a></td>
               </tr>
             </table>