From c67b3746b9b8a9931f2dfb128db7d6ddc5f8537d Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Fri, 7 Oct 2005 14:29:23 +0000 Subject: [PATCH] * Put a nice style around noarticletext --- includes/Article.php | 6 +++++- skins/monobook/main.css | 8 ++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/includes/Article.php b/includes/Article.php index cf4c713f7a..3ebcc70a4a 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -105,7 +105,9 @@ class Article { } wfProfileOut( $fname ); $wgOut->setRobotpolicy( 'noindex,nofollow' ); - return wfMsg( $wgUser->isLoggedIn() ? 'noarticletext' : 'noarticletextanon' ); + + $ret = wfMsg( $wgUser->isLoggedIn() ? 'noarticletext' : 'noarticletextanon' ); + return "
$ret
"; } else { $this->loadContent( $noredir ); # check if we're displaying a [[User talk:x.x.x.x]] anonymous talk page @@ -2131,6 +2133,7 @@ class Article { global $wgDeferredUpdateList, $wgDBname, $wgMemc; global $wgMessageCache, $wgUser, $wgUseEnotif; + /* wfSeedRandom(); if ( 0 == mt_rand( 0, 999 ) ) { # Periodically flush old entries from the recentchanges table. @@ -2144,6 +2147,7 @@ class Article { // re-enabled for commit of unrelated live changes -- TS $dbw->query( $sql ); } + */ $id = $this->getID(); $title = $this->mTitle->getPrefixedDBkey(); $shortTitle = $this->mTitle->getDBkey(); diff --git a/skins/monobook/main.css b/skins/monobook/main.css index c3c10cf3fe..a0aa93b588 100644 --- a/skins/monobook/main.css +++ b/skins/monobook/main.css @@ -1211,3 +1211,11 @@ p.revision_saved { background-color: #f0f0ff; } + +/* noarticletext */ +div.noarticletext { + border: 1px solid #ccc; + padding: 7px; + background: white; +} + -- 2.20.1