[pLog-svn] r5621 - plog/trunk/class/action/admin
mark at devel.lifetype.net
mark at devel.lifetype.net
Fri Jul 6 05:56:23 EDT 2007
Author: mark
Date: 2007-07-06 05:56:23 -0400 (Fri, 06 Jul 2007)
New Revision: 5621
Modified:
plog/trunk/class/action/admin/adminaddfriendaction.class.php
plog/trunk/class/action/admin/adminaddglobalarticlecategoryaction.class.php
Log:
some bugs fix.
Modified: plog/trunk/class/action/admin/adminaddfriendaction.class.php
===================================================================
--- plog/trunk/class/action/admin/adminaddfriendaction.class.php 2007-07-06 06:14:41 UTC (rev 5620)
+++ plog/trunk/class/action/admin/adminaddfriendaction.class.php 2007-07-06 09:56:23 UTC (rev 5621)
@@ -80,7 +80,7 @@
// see if the user exists
if( $this->_userInfo->getUsername() == $this->_friendName ) {
$this->_view = new AdminNewFriendView( $this->_blogInfo );
- $this->_view->setErrorMessage( $this->_locale->pr("error_invalid_user"), $this->_friendName );
+ $this->_view->setErrorMessage( $this->_locale->pr("error_invalid_user", $this->_friendName) );
$this->_form->setFieldValidationStatus( "friendName", false );
$this->setCommonData( true );
@@ -92,7 +92,7 @@
$friendInfo = $users->getUserInfoFromUsername( $this->_friendName );
if( !$friendInfo ) {
$this->_view = new AdminNewFriendView( $this->_blogInfo );
- $this->_view->setErrorMessage( $this->_locale->pr("error_invalid_user"), $this->_friendName );
+ $this->_view->setErrorMessage( $this->_locale->pr("error_invalid_user", $this->_friendName) );
$this->_form->setFieldValidationStatus( "friendName", false );
$this->setCommonData( true );
Modified: plog/trunk/class/action/admin/adminaddglobalarticlecategoryaction.class.php
===================================================================
--- plog/trunk/class/action/admin/adminaddglobalarticlecategoryaction.class.php 2007-07-06 06:14:41 UTC (rev 5620)
+++ plog/trunk/class/action/admin/adminaddglobalarticlecategoryaction.class.php 2007-07-06 09:56:23 UTC (rev 5621)
@@ -80,6 +80,7 @@
else {
// if there was an error, we should say so... as well as not changing the view since
// we're going back to the original view where we can add the category
+ $this->_view = new AdminTemplatedView( $this->_blogInfo, "newglobalarticlecategory" );
$this->_view->setError( true );
$this->_view->setErrorMessage( $this->_locale->tr("error_adding_global_article_category" ));
$this->setCommonData( true );
More information about the pLog-svn
mailing list