From: Ævar Arnfjörð Bjarmason Date: Fri, 7 Oct 2005 14:29:23 +0000 (+0000) Subject: * Put a nice style around noarticletext X-Git-Tag: 1.6.0~1517 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=c67b3746b9b8a9931f2dfb128db7d6ddc5f8537d;p=lhc%2Fweb%2Fwiklou.git * Put a nice style around noarticletext --- 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; +} +