[pLog-svn] r2939 - plog/trunk/class/view/admin
mark at devel.lifetype.net
mark at devel.lifetype.net
Sat Feb 11 14:16:12 GMT 2006
Author: mark
Date: 2006-02-11 14:16:11 +0000 (Sat, 11 Feb 2006)
New Revision: 2939
Modified:
plog/trunk/class/view/admin/adminnewlinkview.class.php
Log:
The showOrder never used in admin/adminnewlinkview.class.php, therefore I remove it. And I add a blogsetting object to get the link_category_order.
Modified: plog/trunk/class/view/admin/adminnewlinkview.class.php
===================================================================
--- plog/trunk/class/view/admin/adminnewlinkview.class.php 2006-02-09 19:06:20 UTC (rev 2938)
+++ plog/trunk/class/view/admin/adminnewlinkview.class.php 2006-02-11 14:16:11 UTC (rev 2939)
@@ -20,14 +20,8 @@
*/
function AdminNewLinkView( $blogInfo, $params = Array())
{
- if( $this->_templateName == "" )
- $this->_templateName = "newlink";
- $this->AdminTemplatedView( $blogInfo, $this->_templateName );
-
- // save the parameters and put them in a nicer place after checking them
- if( $params["showOrder"] == "" ) $params["showOrder"] = MYLINKS_CATEGORIES_NO_ORDER;
-
- $this->setValue( "showOrder", $params["showOrder"] );
+
+ $this->AdminTemplatedView( $blogInfo, "newlink" );
}
/**
@@ -36,7 +30,8 @@
function render()
{
// get all the link categories but we have to respect the order that the user asked
- $order = $this->getValue( "showOrder" );
+ $blogSettings = $this->_blogInfo->getSettings();
+ $order = $blogSettings->getValue( 'link_categories_order', MYLINKS_CATEGORIES_NO_ORDER );
$linkCategories = new MyLinksCategories();
$blogLinkCategories = $linkCategories->getMyLinksCategories( $this->_blogInfo->getId(), $order );
$this->notifyEvent( EVENT_LINK_CATEGORIES_LOADED, Array( "linkcategories" => &$blogLinkCategories ));
More information about the pLog-svn
mailing list