From 8cc12e7d99feadc5f1a2a37cf85be6ed79e77fc1 Mon Sep 17 00:00:00 2001 From: Nick Jenkins Date: Mon, 2 Jun 2008 06:44:05 +0000 Subject: [PATCH] Prevent E_STRICT warning on editing a non-existent page / starting a new page: ------------------------------- Strict Standards: Only variables should be passed by reference in includes/EditPage.php on line 2233 EditPage.showDeletionLog(Object:OutputPage) # line 685, file: includes/EditPage.php EditPage.showIntro() # line 450, file: includes/EditPage.php EditPage.edit() # line 348, file: includes/EditPage.php EditPage.submit() # line 490, file: includes/Wiki.php MediaWiki.performAction(Object:OutputPage, Object:Article, Object:Title, Object:User, Object:WebRequest) # line 59, file: includes/Wiki.php MediaWiki.initialize(Object:Title, Object:Article, Object:OutputPage, Object:User, Object:WebRequest) # line 92, file: index.php ------------------------------- --- includes/LogEventsList.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index a48c9da575..d9635418c6 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -24,9 +24,9 @@ class LogEventsList { private $out; public $flags; - function __construct( &$skin, &$out, $flags = 0 ) { - $this->skin =& $skin; - $this->out =& $out; + function __construct( $skin, $out, $flags = 0 ) { + $this->skin = $skin; + $this->out = $out; $this->flags = $flags; $this->preCacheMessages(); } -- 2.20.1