Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php |
— | — | @@ -328,7 +328,7 @@ |
329 | 329 | //$userCanEditPage = ( $wgUser->isAllowed( 'edit' ) && $this->mPageTitle->userCan( 'edit' ) ); |
330 | 330 | $permissionErrors = $this->mPageTitle->getUserPermissionsErrors( 'edit', $wgUser ); |
331 | 331 | $userCanEditPage = count( $permissionErrors ) == 0; |
332 | | - wfRunHooks( 'sfUserCanEditPage', array( &$userCanEditPage ) ); |
| 332 | + wfRunHooks( 'sfUserCanEditPage', array( $this->mPageTitle, &$userCanEditPage ) ); |
333 | 333 | $form_text = ""; |
334 | 334 | if ( $userCanEditPage || $is_query ) { |
335 | 335 | $form_is_disabled = false; |