* Add a 'success' class analog to the 'error' class
authorRaimond Spekking <raymond@users.mediawiki.org>
Tue, 25 Mar 2008 20:06:33 +0000 (20:06 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Tue, 25 Mar 2008 20:06:33 +0000 (20:06 +0000)
* Add the new 'success' class to some messages of SpecialRevisiondelete.php

includes/DefaultSettings.php
includes/SpecialRevisiondelete.php
skins/monobook/main.css

index 3abd733..ccc2f2a 100644 (file)
@@ -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:
index ee26cf4..b14cc92 100644 (file)
@@ -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( '<p>'.$histlink.' / '.$loglink.' / '.$dellink.'</p>' );
-               
                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
index 0405640..1f1e4aa 100644 (file)
@@ -283,6 +283,10 @@ span.subpages {
        margin: 0;
        padding: 0;
 }
+.success {
+       color: green;
+       font-size: larger;
+}
 .error {
        color: red;
        font-size: larger;