Extension talk:AlternateSyntaxParser

From MediaWiki.org

Jump to: navigation, search

[edit] Questions

Does specifying a site-wide default alternate syntax reset all articles to be viewed in that syntax? I.e. if we already have a bunch of pages in the standard mediawiki syntax, will setting the site-wide default change these pages over to the new default?

[edit] Bug fix

There's a small bug which causes extraneous error_log output, at least with PHP 5.1.6 and MW1.12. It's fixed with the following patch: --otheus 08:31, 15 July 2008 (UTC)

*** AlternateSyntaxParser.php   2007-06-02 23:15:01.000000000 +0200
--- ../wiki/extensions/AlternateSyntaxParser/AlternateSyntaxParser.php      2008-07-15 10:26:40.000000000 +0200
***************
*** 85,90 ****
--- 85,91 ----
   * Wrapper class for encapsulating AlternateSyntaxParser methods
   */
  class AlternateSyntaxParser {
+     var $mEditPreviewFlag = true;
 
      /**
       * Setup for AlternateSyntaxParser extension.
***************
*** 188,194 ****
       * @return Boolean Always true.
       */
      function unflagEditPreview( &$editpage, &$out ) {
!         if (isset($this->mEditPreviewFlag)) unset($this->mEditPreviewFlag);
          return true;
      }
 
--- 189,196 ----
       * @return Boolean Always true.
       */
      function unflagEditPreview( &$editpage, &$out ) {
!         // if (isset($this->mEditPreviewFlag)) unset($this->mEditPreviewFlag);
!         $this->mEditPreviewFlag = false;
          return true;
      }