[pLog-svn] r5813 - plog/trunk/class/action/admin
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Wed Aug 8 16:44:31 EDT 2007
Author: oscar
Date: 2007-08-08 16:44:31 -0400 (Wed, 08 Aug 2007)
New Revision: 5813
Modified:
plog/trunk/class/action/admin/adminaddpermissionaction.class.php
Log:
Fixed a small confusion with the event name.
Modified: plog/trunk/class/action/admin/adminaddpermissionaction.class.php
===================================================================
--- plog/trunk/class/action/admin/adminaddpermissionaction.class.php 2007-08-08 20:43:27 UTC (rev 5812)
+++ plog/trunk/class/action/admin/adminaddpermissionaction.class.php 2007-08-08 20:44:31 UTC (rev 5813)
@@ -44,9 +44,9 @@
$perm->setAdminOnlyPermission( true );
$perms = new Permissions();
- $this->notifyEvent( EVENT_PRE_PERMISSION_ADD, Array( "permission" => &$perm ));
+ $this->notifyEvent( EVENT_PRE_ADD_PERMISSION, Array( "permission" => &$perm ));
if( $perms->addPermission( $perm )) {
- $this->notifyEvent( EVENT_POST_PERMISSION_ADD, Array( "permission" => &$perm ));
+ $this->notifyEvent( EVENT_POST_ADD_PERMISSION, Array( "permission" => &$perm ));
if( $this->_userInfo->hasPermissionByName( "view_permissions", 0 ))
$this->_view = new AdminPermissionsListView( $this->_blogInfo );
else
More information about the pLog-svn
mailing list