$this->mCategoryLinks = array();
$this->mDoNothing = false;
$this->mContainsOldMagic = $this->mContainsNewMagic = 0;
- $nullvalue = NULL;
- $this->mParserOptions = ParserOptions::newFromUser( $nullvalue );
+ $this->mParserOptions = ParserOptions::newFromUser( NULL );
$this->mSquidMaxage = 0;
$this->mScripts = '';
$this->mETag = false;
* Get parser options
* @static
*/
- static function newFromUser( &$user ) {
+ static function newFromUser( $user ) {
return new ParserOptions( $user );
}
/** Get user options */
- function initialiseFromUser( &$userInput ) {
+ function initialiseFromUser( $userInput ) {
global $wgUseTeX, $wgUseDynamicDates, $wgInterwikiMagic, $wgAllowExternalImages;
global $wgAllowExternalImagesFrom, $wgAllowSpecialInclusion;
$fname = 'ParserOptions::initialiseFromUser';