Index: trunk/extensions/AuthorProtect/AuthorProtect.php |
— | — | @@ -96,7 +96,7 @@ |
97 | 97 | return true; |
98 | 98 | } |
99 | 99 | |
100 | | -function efAuthorProtectForm( $action, &$article ) { |
| 100 | +function efAuthorProtectForm( $action, $article ) { |
101 | 101 | global $wgTitle, $wgAuthorProtectDoProtect; |
102 | 102 | if ( $action == 'authorprotect' ) { |
103 | 103 | wfLoadExtensionMessages( 'AuthorProtect' ); |
— | — | @@ -110,7 +110,7 @@ |
111 | 111 | if ( !$wgUser->matchEditToken( $wgRequest->getText( 'wpToken' ) ) ) { |
112 | 112 | $wgOut->setPageTitle( wfMsg( 'errorpagetitle' ) ); |
113 | 113 | $wgOut->addWikiText( wfMsg( 'sessionfailure' ) ); |
114 | | - return; |
| 114 | + return false; |
115 | 115 | } |
116 | 116 | $restrictions = array(); |
117 | 117 | $expiration = array(); |