r1354 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r1353‎ | r1354 | r1355 >
Date:07:15, 23 May 2003
Author:eloquence
Status:old
Tags:
Comment:
using existing Skin reference from $wgUser instead of Skin() object
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -1019,8 +1019,7 @@
10201020 $sql="SELECT old_text FROM old WHERE old_namespace=0 and old_title='" . wfStrencode($wgTitle->getPrefixedDBkey())."' ORDER BY inverse_timestamp LIMIT 1";
10211021 $res=wfQuery($sql,$fname);
10221022 if( $old=wfFetchObject($res)) {
1023 -
1024 - $skin=new Skin();
 1023+ $skin=$wgUser->getSkin();
10251024 $wgOut->addHTML("<B>".wfMsg("historywarning"));
10261025 $wgOut->addHTML( $skin->historyLink() ."</B><P>");
10271026 }

Status & tagging log