[pLog-svn] r6747 - plog/branches/lifetype-1.2/class/action/admin
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Mon Nov 24 10:51:32 EST 2008
Author: jondaley
Date: 2008-11-24 10:51:31 -0500 (Mon, 24 Nov 2008)
New Revision: 6747
Modified:
plog/branches/lifetype-1.2/class/action/admin/adminupdatepermissionaction.class.php
Log:
need to set the view before we set the message. http://forums.lifetype.net/viewtopic.php?f=7&t=9321
Modified: plog/branches/lifetype-1.2/class/action/admin/adminupdatepermissionaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminupdatepermissionaction.class.php 2008-11-19 23:42:16 UTC (rev 6746)
+++ plog/branches/lifetype-1.2/class/action/admin/adminupdatepermissionaction.class.php 2008-11-24 15:51:31 UTC (rev 6747)
@@ -38,9 +38,9 @@
// load the permission
$perms = new Permissions();
$perm = $perms->getPermission( $this->_request->getValue( "permissionId" ));
+ $this->_view = new AdminPermissionsListView( $this->_blogInfo );
if( !$perm ) {
- $this->_view = new AdminPermissionsListView( $this->_blogInfo );
$this->_view->setErrorMessage( $this->_locale->tr("error_fetching_permission" ));
$this->setCommonData();
return( false );
@@ -52,7 +52,6 @@
$perm->setAdminOnlyPermission(( $this->_request->getValue( "adminOnlyPermission" ) == "" ? false : true ));
if( $perms->updatePermission( $perm )) {
- $this->_view = new AdminPermissionsListView( $this->_blogInfo );
$this->_view->setSuccessMessage( $this->_locale->tr("permission_updated_ok" ));
$this->setCommonData();
}
More information about the pLog-svn
mailing list