From: Brion Vibber Date: Wed, 29 Sep 2004 08:20:55 +0000 (+0000) Subject: Make FauxRequest actually work ;P X-Git-Tag: 1.5.0alpha1~1736 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=62b3b52e39738b2c6d2476724ef790920a597ed6;p=lhc%2Fweb%2Fwiklou.git Make FauxRequest actually work ;P --- 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; }