~ubuntu-branches/ubuntu/saucy/mediawiki-extensions/saucy

« back to all changes in this revision

Viewing changes to dist/mediawiki-extensions-fckeditor/usr/share/mediawiki-extensions/fckeditor/mw12/FCKeditorParserWrapper.body.php

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis
  • Date: 2010-05-04 15:13:35 UTC
  • mfrom: (0.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100504151335-54qeucg3ec108q28
Tags: 2.2
* Added Replaces:/Conflicts: to allow a proper upgrade.
Closes: #580066
* Fixed package descriptions.
Closes: #579667
* Patched mediawiki-extensions-fckeditor to make it work with
  php 5.3. The fix may not be perfect but at least it work.
  Not closing the bug (#579822) for now..

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
/**
 
4
 * Used by MW 1.12+
 
5
 */
 
6
class FCKeditorParserWrapper extends Parser_OldPP
 
7
{
 
8
        function __construct() {
 
9
                global $wgParser;
 
10
 
 
11
                parent::__construct();
 
12
 
 
13
                $wgParser->firstCallInit();
 
14
                foreach ($wgParser->getTags() as $h) {
 
15
                        if (!in_array($h, array("pre"))) {
 
16
                                $this->setHook($h, array($this, "fck_genericTagHook"));
 
17
                        }
 
18
                }
 
19
        }
 
20
 
 
21
        function replaceInternalLinks( $s ) {
 
22
                return parent::replaceInternalLinks( $s );
 
23
        }
 
24
 
 
25
        function makeImage( $title, $options, $holders = false ) {
 
26
                return parent::makeImage( $title, $options, $holders );
 
27
        }
 
28
 
 
29
        function internalParse( $text ) {
 
30
                return parent::internalParse( $text );
 
31
        }
 
32
 
 
33
        function parse( $text, Title $title, ParserOptions $options, $linestart = true, $clearState = true, $revid = null ) {
 
34
                return parent::parse( $text, $title, $options, $linestart, $clearState, $revid );
 
35
        }
 
36
}