[pLog-svn] r814 - in plugins/trunk/gravatar: class/action templates

oscar at devel.plogworld.net oscar at devel.plogworld.net
Mon Jan 24 07:56:08 GMT 2005


Author: oscar
Date: 2005-01-24 07:56:07 +0000 (Mon, 24 Jan 2005)
New Revision: 814

Modified:
   plugins/trunk/gravatar/class/action/plugingravatarupdateconfigaction.class.php
   plugins/trunk/gravatar/templates/gravatar.template
Log:
a few more usability changes...


Modified: plugins/trunk/gravatar/class/action/plugingravatarupdateconfigaction.class.php
===================================================================
--- plugins/trunk/gravatar/class/action/plugingravatarupdateconfigaction.class.php	2005-01-24 07:50:02 UTC (rev 813)
+++ plugins/trunk/gravatar/class/action/plugingravatarupdateconfigaction.class.php	2005-01-24 07:56:07 UTC (rev 814)
@@ -1,8 +1,8 @@
 <?php
 
 	include_once( PLOG_CLASS_PATH."class/action/admin/adminaction.class.php" );
-    include_once( PLOG_CLASS_PATH."class/view/admin/adminerrorview.class.php" );
-	include_once( PLOG_CLASS_PATH."class/view/admin/adminmessageview.class.php" );
+	include_once( PLOG_CLASS_PATH."class/view/admin/adminplugintemplatedview.class.php" );
+
 		
 	/**
 	 * updates the plugin configuration
@@ -43,8 +43,8 @@
 			// save the blogs settings
 			$blogs = new Blogs();
             if( !$blogs->updateBlog( $this->_blogInfo->getId(), $this->_blogInfo )) {
-                $this->_view = new AdminErrorView( $this->_blogInfo );
-                $this->_view->setValue( "message", $this->_locale->tr("error_updating_settings"));
+                $this->_view = new AdminPluginTemplatedView( $this->_blogInfo, "gravatar", "gravatar" );
+                $this->_view->setErrorMessage( $this->_locale->tr("error_updating_settings"));
                 $this->setCommonData();
 
                 return false;
@@ -55,8 +55,8 @@
             $this->_session->setValue( "blogInfo", $this->_blogInfo );
             $this->saveSession();
 			
-			$this->_view = new AdminMessageView( $this->_blogInfo );
-			$this->_view->setMessage( $this->_locale->tr("gravatar_settings_saved_ok"));
+			$this->_view = new AdminPluginTemplatedView( $this->_blogInfo, "gravatar", "gravatar" );
+			$this->_view->setSuccessMessage( $this->_locale->tr("gravatar_settings_saved_ok"));
 			$this->setCommonData();
             
             return true;		

Modified: plugins/trunk/gravatar/templates/gravatar.template
===================================================================
--- plugins/trunk/gravatar/templates/gravatar.template	2005-01-24 07:50:02 UTC (rev 813)
+++ plugins/trunk/gravatar/templates/gravatar.template	2005-01-24 07:56:07 UTC (rev 814)
@@ -3,6 +3,8 @@
 <form name="gravatarPluginConfig" method="post">
  <fieldset class="inputField">
  <legend>{$locale->tr("configuration")}</legend> 
+  {include file="$admintemplatepath/successmessage.template"}
+  {include file="$admintemplatepath/errormessage.template"}
   <div class="field">
    <label for="pluginEnabled">{$locale->tr("enable")}</label>
    <span class="required"></span>




More information about the pLog-svn mailing list