From ad3b6be0ff32fe5ab7808951c52e44d2e89c90c1 Mon Sep 17 00:00:00 2001 From: Erik Moeller Date: Fri, 23 May 2003 07:15:37 +0000 Subject: [PATCH] using existing Skin reference from $wgUser instead of Skin() object --- includes/Article.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index 0a29aa7f08..b84ec08c56 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1019,8 +1019,7 @@ name=\"wpSummary\" maxlength=200 size=60>
$sql="SELECT old_text FROM old WHERE old_namespace=0 and old_title='" . wfStrencode($wgTitle->getPrefixedDBkey())."' ORDER BY inverse_timestamp LIMIT 1"; $res=wfQuery($sql,$fname); if( $old=wfFetchObject($res)) { - - $skin=new Skin(); + $skin=$wgUser->getSkin(); $wgOut->addHTML("".wfMsg("historywarning")); $wgOut->addHTML( $skin->historyLink() ."

"); } -- 2.20.1