Added to DefaultSettings
authorPriyanka Dhanda <pdhanda@users.mediawiki.org>
Mon, 18 Oct 2010 18:20:19 +0000 (18:20 +0000)
committerPriyanka Dhanda <pdhanda@users.mediawiki.org>
Mon, 18 Oct 2010 18:20:19 +0000 (18:20 +0000)
includes/DefaultSettings.php
includes/diff/DifferenceInterface.php

index 11077f2..a886751 100644 (file)
@@ -5121,6 +5121,7 @@ $wgRepositoryPackageStates = array(
  */
 $wgEnableSelenium = false;
 $wgSeleniumTestConfigs = array();
+$wgSeleniumConfigFile = null;
 
 
 
index f59aa56..82bd20a 100644 (file)
@@ -456,21 +456,23 @@ CONTROL;
                                $wgOut->addHTML( htmlspecialchars( $this->mNewtext ) );
                                $wgOut->addHTML( "\n</pre>\n" );
                        }
-               } elseif( $pCache ) {
-                       $article = new Article( $this->mTitle, 0 );
-                       $pOutput = ParserCache::singleton()->get( $article, $wgOut->parserOptions() );
-                       if( $pOutput ) {
-                               $wgOut->addParserOutput( $pOutput );
+               } elseif( wfRunHooks( 'ArticleContentOnDiff', array( $this, &$wgOut ) ) ) {
+                       if( $pCache ) {
+                               $article = new Article( $this->mTitle, 0 );
+                               $pOutput = ParserCache::singleton()->get( $article, $wgOut->parserOptions() );
+                               if( $pOutput ) {
+                                       $wgOut->addParserOutput( $pOutput );
+                               } else {
+                                       $article->doViewParse();
+                               }
                        } else {
-                               $article->doViewParse();
+                               $wgOut->addWikiTextTidy( $this->mNewtext );
                        }
-               } else {
-                       $wgOut->addWikiTextTidy( $this->mNewtext );
-               }
+                       if( is_object( $this->mNewRev ) && !$this->mNewRev->isCurrent() ) {
+                               $wgOut->parserOptions()->setEditSection( $oldEditSectionSetting );
+                       }
+               } 
 
-               if( is_object( $this->mNewRev ) && !$this->mNewRev->isCurrent() ) {
-                       $wgOut->parserOptions()->setEditSection( $oldEditSectionSetting );
-               }
                # Add redundant patrol link on bottom...
                if( $this->mRcidMarkPatrolled && $this->mTitle->quickUserCan('patrol') ) {
                        $sk = $wgUser->getSkin();