Ticket #5602: FCKeditor-php5.3.x-fix.patch
File FCKeditor-php5.3.x-fix.patch, 2.6 KB (added by , 14 years ago) |
---|
-
FCKeditor.body.php
203 203 } 204 204 } 205 205 206 public function onCustomEditor( &$article, &$user) {206 public function onCustomEditor( $article, $user ) { 207 207 global $wgRequest, $mediaWiki; 208 208 209 209 $action = $mediaWiki->getVal('Action'); -
FCKeditorParser.body.php
335 335 return $text; 336 336 } 337 337 338 function makeImage( $nt, $options ) {338 function makeImage( $nt, $options, $holders=false ) { 339 339 FCKeditorParser::$fkc_mw_makeImage_options = $options; 340 340 return parent::makeImage( $nt, $options ); 341 341 } … … 432 432 return $text; 433 433 } 434 434 435 function internalParse ( $text ) {435 function internalParse ( $text, $isMain = true, $frame=false ) { 436 436 437 437 $this->fck_internal_parse_text =& $text; 438 438 … … 462 462 function fck_leaveTemplatesAlone( $matches ) { 463 463 return "<!--FCK_SKIP_START-->".$matches['text']."<!--FCK_SKIP_END-->"; 464 464 } 465 function formatHeadings( $text, $ isMain=true ) {465 function formatHeadings( $text, $origText, $isMain=true ) { 466 466 return $text; 467 467 } 468 468 function replaceFreeExternalLinks( $text ) { return $text; } … … 485 485 return $text; 486 486 } 487 487 488 function parse( $text, &$title,$options, $linestart = true, $clearState = true, $revid = null ) {488 function parse( $text, Title $title, ParserOptions $options, $linestart = true, $clearState = true, $revid = null ) { 489 489 $text = preg_replace("/^#REDIRECT/", "<!--FCK_REDIRECT-->", $text); 490 490 $parserOutput = parent::parse($text, $title, $options, $linestart , $clearState , $revid ); 491 491 -
FCKeditorSkin.body.php
440 440 return call_user_func_array( array( $this->skin, $m ), $a ); 441 441 } 442 442 443 function __construct( &$skin ) {443 function __construct( $skin ) { 444 444 $this->skin = $skin; 445 445 } 446 446 } -
mw12/FCKeditorParserWrapper.body.php
26 26 return parent::makeImage( $title, $options, $holders ); 27 27 } 28 28 29 function internalParse( $text ) {29 function internalParse( $text, $isMain = true, $frame=false ) { 30 30 return parent::internalParse( $text ); 31 31 } 32 32