http://www.mediawiki.org/wiki/Special:Code/MediaWiki/68822

Revision: 68822
Author:   raymond
Date:     2010-07-01 09:17:24 +0000 (Thu, 01 Jul 2010)

Log Message:
-----------
Follow-up r68820: Fix another warning and a fatal error

Modified Paths:
--------------
    trunk/extensions/AuthorProtect/AuthorProtect.php

Modified: trunk/extensions/AuthorProtect/AuthorProtect.php
===================================================================
--- trunk/extensions/AuthorProtect/AuthorProtect.php    2010-07-01 08:25:04 UTC 
(rev 68821)
+++ trunk/extensions/AuthorProtect/AuthorProtect.php    2010-07-01 09:17:24 UTC 
(rev 68822)
@@ -96,7 +96,7 @@
        return true;
 }
 
-function efAuthorProtectForm( $action, &$article ) {
+function efAuthorProtectForm( $action, $article ) {
        global $wgTitle, $wgAuthorProtectDoProtect;
        if ( $action == 'authorprotect' ) {
                wfLoadExtensionMessages( 'AuthorProtect' );
@@ -110,7 +110,7 @@
                                        if ( !$wgUser->matchEditToken( 
$wgRequest->getText( 'wpToken' ) ) ) {
                                                $wgOut->setPageTitle( wfMsg( 
'errorpagetitle' ) );
                                                $wgOut->addWikiText( wfMsg( 
'sessionfailure' ) );
-                                               return;
+                                               return false;
                                        }
                                        $restrictions = array();
                                        $expiration = array();



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to