[pLog-svn] r2506 - in plog/trunk: class/action/admin templates/admin

oscar at devel.plogworld.net oscar at devel.plogworld.net
Wed Sep 21 19:53:30 GMT 2005


Author: oscar
Date: 2005-09-21 19:53:30 +0000 (Wed, 21 Sep 2005)
New Revision: 2506

Modified:
   plog/trunk/class/action/admin/admineditglobalarticlecategoryaction.class.php
   plog/trunk/templates/admin/editglobalarticlecategory.template
Log:
fixed the name of the template in the view and added some text missing from the template


Modified: plog/trunk/class/action/admin/admineditglobalarticlecategoryaction.class.php
===================================================================
--- plog/trunk/class/action/admin/admineditglobalarticlecategoryaction.class.php	2005-09-21 19:46:50 UTC (rev 2505)
+++ plog/trunk/class/action/admin/admineditglobalarticlecategoryaction.class.php	2005-09-21 19:53:30 UTC (rev 2506)
@@ -49,7 +49,7 @@
         	// fetch the category
 			$this->_categoryId = $this->_request->getValue( "categoryId" );
             $categories = new GlobalArticleCategories();
-            $category   = $categories->getCategory( $this->_categoryId);
+            $category   = $categories->getGlobalArticleCategory( $this->_categoryId);
             // show an error if we couldn't fetch the category
             if( !$category ) {
             	$this->_view = new AdminGlobalArticleCategoriesListView( $this->_blogInfo );
@@ -61,7 +61,7 @@
 			
 			$this->notifyEvent( EVENT_CATEGORY_LOADED, Array( "category" => &$category ));			
             // otherwise show the form to edit its fields
-        	$this->_view = new AdminTemplatedView( $this->_blogInfo, "globalsettings_editarticlecategory" );
+        	$this->_view = new AdminTemplatedView( $this->_blogInfo, "editglobalarticlecategory" );
             $this->_view->setValue( "category", $category );
 			$this->_view->setValue( "categoryName", $category->getName());
 			$this->_view->setValue( "categoryDescription", $category->getDescription());

Modified: plog/trunk/templates/admin/editglobalarticlecategory.template
===================================================================
--- plog/trunk/templates/admin/editglobalarticlecategory.template	2005-09-21 19:46:50 UTC (rev 2505)
+++ plog/trunk/templates/admin/editglobalarticlecategory.template	2005-09-21 19:53:30 UTC (rev 2506)
@@ -10,7 +10,7 @@
    <div class="field">
     <label for="categoryName">{$locale->tr("name")}</label>
     <span class="required">*</span>
-    <div class="formHelp"></div>
+    <div class="formHelp">{$locale->tr("category_name_help")}</div>
     <input type="text" id="categoryName" name="categoryName" value="{$categoryName|escape:"html"}"/>
     {include file="$admintemplatepath/validate.template" field=categoryName message=$locale->tr("error_empty_name")}
    </div>
@@ -18,7 +18,7 @@
    <div class="field">
     <label for="categoryDescription">{$locale->tr("description")}</label>
     <span class="required">*</span>
-    <div class="formHelp"></div>
+    <div class="formHelp">{$locale->tr("category_description_help")}</div>
     <textarea name="categoryDescription" id="categoryDescription" cols="60" rows="5">{$categoryDescription}</textarea>
     {include file="$admintemplatepath/validate.template" field=categoryDescription message=$locale->tr("error_empty_description")}
   </div>




More information about the pLog-svn mailing list