Ticket #5602: FCKeditor-php5.3.x-fix.patch

File FCKeditor-php5.3.x-fix.patch, 2.6 KB (added by James, 14 years ago)

New patch based off of SVN r5861 to fix PHP Strict errors on PHP 5.3.x

  • FCKeditor.body.php

     
    203203                }
    204204        }
    205205
    206         public function onCustomEditor(&$article, &$user) {
     206        public function onCustomEditor( $article, $user ) {
    207207                global $wgRequest, $mediaWiki;
    208208
    209209                $action = $mediaWiki->getVal('Action');
  • FCKeditorParser.body.php

     
    335335                return $text;
    336336        }
    337337
    338         function makeImage( $nt, $options ) {
     338        function makeImage( $nt, $options, $holders=false ) {
    339339                FCKeditorParser::$fkc_mw_makeImage_options = $options;
    340340                return parent::makeImage( $nt, $options );
    341341        }
     
    432432                return $text;
    433433        }
    434434
    435         function internalParse ( $text ) {
     435        function internalParse ( $text, $isMain = true, $frame=false ) {
    436436
    437437                $this->fck_internal_parse_text =& $text;
    438438
     
    462462        function fck_leaveTemplatesAlone( $matches ) {
    463463                return "<!--FCK_SKIP_START-->".$matches['text']."<!--FCK_SKIP_END-->";
    464464        }
    465         function formatHeadings( $text, $isMain=true ) {
     465        function formatHeadings( $text, $origText, $isMain=true ) {
    466466                return $text;
    467467        }
    468468        function replaceFreeExternalLinks( $text ) { return $text; }
     
    485485                return $text;
    486486        }
    487487
    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 ) {
    489489                $text = preg_replace("/^#REDIRECT/", "<!--FCK_REDIRECT-->", $text);
    490490                $parserOutput = parent::parse($text, $title, $options, $linestart , $clearState , $revid );
    491491
  • FCKeditorSkin.body.php

     
    440440                return call_user_func_array( array( $this->skin, $m ), $a );
    441441        }
    442442
    443         function __construct( &$skin ) {
     443        function __construct( $skin ) {
    444444                $this->skin = $skin;
    445445        }
    446446}
  • mw12/FCKeditorParserWrapper.body.php

     
    2626                return parent::makeImage( $title, $options, $holders );
    2727        }
    2828
    29         function internalParse( $text ) {
     29        function internalParse( $text, $isMain = true, $frame=false ) {
    3030                return parent::internalParse( $text );
    3131        }
    3232
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy