r93262 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93261‎ | r93262 | r93263 >
Date:13:11, 27 July 2011
Author:yaron
Status:deferred
Tags:
Comment:
Added another parameter to 'sfUserCanEditPage' hook, for use by Halo extension
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_FormPrinter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php
@@ -328,7 +328,7 @@
329329 //$userCanEditPage = ( $wgUser->isAllowed( 'edit' ) && $this->mPageTitle->userCan( 'edit' ) );
330330 $permissionErrors = $this->mPageTitle->getUserPermissionsErrors( 'edit', $wgUser );
331331 $userCanEditPage = count( $permissionErrors ) == 0;
332 - wfRunHooks( 'sfUserCanEditPage', array( &$userCanEditPage ) );
 332+ wfRunHooks( 'sfUserCanEditPage', array( $this->mPageTitle, &$userCanEditPage ) );
333333 $form_text = "";
334334 if ( $userCanEditPage || $is_query ) {
335335 $form_is_disabled = false;