[pLog-svn] r875 - in plog/branches/plog-0.3.2: . templates/summary

oscar at devel.plogworld.net oscar at devel.plogworld.net
Sat Jan 29 19:47:55 GMT 2005


Author: oscar
Date: 2005-01-29 19:47:54 +0000 (Sat, 29 Jan 2005)
New Revision: 875

Modified:
   plog/branches/plog-0.3.2/summary.php
   plog/branches/plog-0.3.2/templates/summary/recent.template
Log:
fixed according to http://www.plogworld.net/forums/viewtopic.php?t=1624&start=15&postdays=0&postorder=asc&highlight=


Modified: plog/branches/plog-0.3.2/summary.php
===================================================================
--- plog/branches/plog-0.3.2/summary.php	2005-01-29 16:05:00 UTC (rev 874)
+++ plog/branches/plog-0.3.2/summary.php	2005-01-29 19:47:54 UTC (rev 875)
@@ -57,7 +57,7 @@
             // load the posts
             $recentPosts = $stats->getRecentArticles( $this->_numPosts );
             // get all the blogs
-            $siteBlogs   = $blogs->getAllBlogs( true );
+            //$siteBlogs   = $blogs->getAllBlogs( true );
             $recentBlogs = $stats->getRecentBlogs( $this->_numPosts );
 
             $activeBlogs    = $stats->getMostActiveBlogs( $this->_numPosts);

Modified: plog/branches/plog-0.3.2/templates/summary/recent.template
===================================================================
--- plog/branches/plog-0.3.2/templates/summary/recent.template	2005-01-29 16:05:00 UTC (rev 874)
+++ plog/branches/plog-0.3.2/templates/summary/recent.template	2005-01-29 19:47:54 UTC (rev 875)
@@ -1,9 +1,10 @@
 <h2>Latest Posts</h2>
 {foreach from=$posts item=post}
-    {assign var="blogId" value=$post->getBlog()}
+    {assign var="blogId" value=$post->getBlog()}
+    {assign var="blogInfo" value=$post->getBlogInfo()}
     <h3>{$post->getTopic()}</h3>
     <div class="subtitle">
-        in <a href="{$url->postPermalink($post)}">{$blogs[$blogId]->getBlog()}</a>
+        in <a href="{$url->postPermalink($post)}">{$blogInfo->getBlog()}</a>
     </div>
     <p>
         {$post->getText()|strip_tags|truncate:200:"..."}




More information about the pLog-svn mailing list