From 62b3b52e39738b2c6d2476724ef790920a597ed6 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 29 Sep 2004 08:20:55 +0000 Subject: [PATCH] Make FauxRequest actually work ;P --- includes/SpecialUndelete.php | 3 ++- includes/WebRequest.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/SpecialUndelete.php b/includes/SpecialUndelete.php index d213e567cd..59e010d7f5 100644 --- a/includes/SpecialUndelete.php +++ b/includes/SpecialUndelete.php @@ -290,7 +290,8 @@ class UndeleteForm { $logViewer =& new LogViewer( new LogReader( new FauxRequest( - array( 'page', $this->mTargetObj->getPrefixedText() ) ) ) ); + array( 'page' => $this->mTargetObj->getPrefixedText(), + 'type' => 'delete' ) ) ) ); $logViewer->showList( $wgOut ); # The page's stored (deleted) history: diff --git a/includes/WebRequest.php b/includes/WebRequest.php index c4bff6a0b2..271d41d02e 100644 --- a/includes/WebRequest.php +++ b/includes/WebRequest.php @@ -392,11 +392,11 @@ class FauxRequest extends WebRequest { var $data = null; var $wasPosted = false; - function WebRequest( $data, $wasPosted = false ) { + function FauxRequest( $data, $wasPosted = false ) { if( is_array( $data ) ) { $this->data = $data; } else { - wfDebugDieBacktrace( "FauxReqeust() got bogus data" ); + wfDebugDieBacktrace( "FauxRequest() got bogus data" ); } $this->wasPosted = $wasPosted; } -- 2.20.1