Apparently cvs forgot to commit this with the rest.
authorArne Heizmann <timwi@users.mediawiki.org>
Mon, 9 Aug 2004 08:21:34 +0000 (08:21 +0000)
committerArne Heizmann <timwi@users.mediawiki.org>
Mon, 9 Aug 2004 08:21:34 +0000 (08:21 +0000)
index.php

index ce5420a..8341741 100644 (file)
--- a/index.php
+++ b/index.php
@@ -114,6 +114,7 @@ if ( $search = $wgRequest->getText( 'search' ) ) {
                case "unprotect":
                case "validate":
                case "info":
+               case "markpatrolled":
                        $wgArticle->$action();
                        break;
                case "print":
@@ -146,7 +147,7 @@ if ( $search = $wgRequest->getText( 'search' ) ) {
                        }
                        require_once( "includes/EditPage.php" );
                        $editor = new EditPage( $wgArticle );
-                       $editor->$action();
+                       $editor->submit();
                        break;
                case "history":
                        if ($_SERVER["REQUEST_URI"] == $wgTitle->getInternalURL('action=history')) {
@@ -173,7 +174,7 @@ if ( $search = $wgRequest->getText( 'search' ) ) {
 }
 
 # Deferred updates aren't really deferred anymore. It's important to report errors to the
-# user, and that means doing this before OutputPage::output(). Note that for page saves, 
+# user, and that means doing this before OutputPage::output(). Note that for page saves,
 # the client will wait until the script exits anyway before following the redirect.
 foreach ( $wgDeferredUpdateList as $up ) {
        $up->doUpdate();