From 13e057a8685724a2611274403dc2e9d9dad3100f Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Tue, 25 Mar 2008 20:06:33 +0000 Subject: [PATCH] * Add a 'success' class analog to the 'error' class * Add the new 'success' class to some messages of SpecialRevisiondelete.php --- includes/DefaultSettings.php | 2 +- includes/SpecialRevisiondelete.php | 15 +++++++-------- skins/monobook/main.css | 4 ++++ 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 3abd7336da..ccc2f2a70f 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1327,7 +1327,7 @@ $wgCacheEpoch = '20030516000000'; * to ensure that client-side caches don't keep obsolete copies of global * styles. */ -$wgStyleVersion = '126'; +$wgStyleVersion = '127'; # Server-side caching: diff --git a/includes/SpecialRevisiondelete.php b/includes/SpecialRevisiondelete.php index ee26cf4c98..b14cc92d22 100644 --- a/includes/SpecialRevisiondelete.php +++ b/includes/SpecialRevisiondelete.php @@ -674,14 +674,14 @@ class RevisionDeleteForm { return $this->showImages( $request ); } } - + private function success( $request ) { global $wgOut; - + $wgOut->setPagetitle( wfMsgHtml( 'actioncomplete' ) ); # Give a link to the log for this page $logtitle = SpecialPage::getTitleFor( 'Log' ); - $loglink = $this->skin->makeKnownLinkObj( $logtitle, wfMsgHtml( 'viewpagelogs' ), + $loglink = $this->skin->makeKnownLinkObj( $logtitle, wfMsgHtml( 'viewpagelogs' ), wfArrayToCGI( array('page' => $this->target ) ) ); # Give a link to the page history $histlink = $this->skin->makeKnownLinkObj( $this->title, wfMsgHtml( 'pagehist' ), @@ -693,21 +693,20 @@ class RevisionDeleteForm { # Logs themselves don't have histories or archived revisions if( !is_null($this->title) && $this->title->getNamespace() > -1) $wgOut->setSubtitle( '

'.$histlink.' / '.$loglink.' / '.$dellink.'

' ); - if( $this->deleteKey=='logid' ) { - $wgOut->addWikiText( wfMsgHtml('logdelete-success'), false ); + $wgOut->addWikiText( Xml::element( 'span', array( 'class' => 'success' ), wfMsg( 'logdelete-success' ) ), false ); $this->showLogItems( $request ); } else if( $this->deleteKey=='oldid' || $this->deleteKey=='artimestamp' ) { - $wgOut->addWikiText( wfMsgHtml('revdelete-success'), false ); + $wgOut->addWikiText( Xml::element( 'span', array( 'class' => 'success' ), wfMsg( 'revdelete-success' ) ), false ); $this->showRevs( $request ); } else if( $this->deleteKey=='fileid' ) { - $wgOut->addWikiText( wfMsgHtml('revdelete-success'), false ); + $wgOut->addWikiText( Xml::element( 'span', array( 'class' => 'success' ), wfMsg( 'revdelete-success' ) ), false ); $this->showImages( $request ); } else if( $this->deleteKey=='oldimage' ) { $this->showImages( $request ); } } - + /** * Put together a rev_deleted bitfield from the submitted checkboxes * @param WebRequest $request diff --git a/skins/monobook/main.css b/skins/monobook/main.css index 0405640208..1f1e4aa001 100644 --- a/skins/monobook/main.css +++ b/skins/monobook/main.css @@ -283,6 +283,10 @@ span.subpages { margin: 0; padding: 0; } +.success { + color: green; + font-size: larger; +} .error { color: red; font-size: larger; -- 2.20.1