From: Steve Sanbeg Date: Tue, 1 May 2007 23:41:44 +0000 (+0000) Subject: add emacs modeline, to give consistent indentation most of the time X-Git-Tag: 1.31.0-rc.0~53134 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=84d51ee907d53a6d328d4de0434c8f53981d1c6e;p=lhc%2Fweb%2Fwiklou.git add emacs modeline, to give consistent indentation most of the time --- diff --git a/includes/Parser.php b/includes/Parser.php index c0c470992b..c8f30b4c83 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1,5 +1,8 @@ +#-*- tab-width:4 c-basic-offset:4 -*- */ mFunctionSynonyms = array( 0 => array(), 1 => array() ); $this->mFirstCall = true; } - + /** * Do various kinds of initialisation on the first call of the parser */ @@ -138,12 +141,12 @@ class Parser if ( !$this->mFirstCall ) { return; } - + wfProfileIn( __METHOD__ ); global $wgAllowDisplayTitle, $wgAllowSlowParserFunctions; - + $this->setHook( 'pre', array( $this, 'renderPreTag' ) ); - + $this->setFunctionHook( 'int', array( 'CoreParserFunctions', 'intFunction' ), SFH_NO_HASH ); $this->setFunctionHook( 'ns', array( 'CoreParserFunctions', 'ns' ), SFH_NO_HASH ); $this->setFunctionHook( 'urlencode', array( 'CoreParserFunctions', 'urlencode' ), SFH_NO_HASH );