[pLog-svn] r5942 - plog/trunk/class/view/admin

oscar at devel.lifetype.net oscar at devel.lifetype.net
Thu Sep 20 15:10:10 EDT 2007


Author: oscar
Date: 2007-09-20 15:10:10 -0400 (Thu, 20 Sep 2007)
New Revision: 5942

Modified:
   plog/trunk/class/view/admin/adminblogtemplatesetslistview.class.php
Log:
Include global templates in the listing, but marked as 'global'


Modified: plog/trunk/class/view/admin/adminblogtemplatesetslistview.class.php
===================================================================
--- plog/trunk/class/view/admin/adminblogtemplatesetslistview.class.php	2007-09-20 19:09:42 UTC (rev 5941)
+++ plog/trunk/class/view/admin/adminblogtemplatesetslistview.class.php	2007-09-20 19:10:10 UTC (rev 5942)
@@ -23,8 +23,9 @@
 		function render()
 		{
 			$ts = new TemplateSets();
-			// get all the template sets, without including the global ones
-			$blogTemplateSets = $ts->getBlogTemplateSets( $this->_blogInfo->getId(), false );
+			// get the blog template sets and the global ones
+			$blogTemplateSets = $ts->getBlogTemplateSets( $this->_blogInfo->getId(), true );			
+			ksort( $blogTemplateSets );
 			$this->setValue( "templates", $blogTemplateSets );
 			
 			parent::render();



More information about the pLog-svn mailing list