Skip to content

Commit

Permalink
bugfix; stylize JS; prepare v0.4
Browse files Browse the repository at this point in the history
bugfix (Non-static method DOMDocument::loadHTML() should not be called statically...)

Change-Id: Icd5f759b8be8aed26426f6bdcd28f9c74446a04e
  • Loading branch information
s7eph4n committed Nov 21, 2012
1 parent fc5412c commit 87219c8
Show file tree
Hide file tree
Showing 3 changed files with 174 additions and 154 deletions.
5 changes: 2 additions & 3 deletions Lingo.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

/**
* Provides hover-over tool tips on articles from words defined on the
* Terminology page.
Expand All @@ -9,15 +8,15 @@
* @author Barry Coughlan
* @copyright 2010 Barry Coughlan
* @author Stephan Gambke
* @version 0.3
* @version 0.4
* @licence GNU General Public Licence 2.0 or later
* @see http://www.mediawiki.org/wiki/Extension:Lingo Documentation
*/
if ( !defined( 'MEDIAWIKI' ) ) {
die( 'This file is part of a MediaWiki extension, it is not a valid entry point.' );
}

define( 'LINGO_VERSION', '0.4 alpha' );
define( 'LINGO_VERSION', '0.4' );


// set defaults for settings
Expand Down
3 changes: 2 additions & 1 deletion LingoParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ protected function realParse( &$parser, &$text ) {
wfProfileIn( __METHOD__ . ' 1 loadHTML' );
wfSuppressWarnings();

$doc = DOMDocument::loadHTML(
$doc = new DOMDocument();
$doc->loadHTML(
'<html><head><meta http-equiv="content-type" content="charset=utf-8"/></head><body>' . $text . '</body></html>'
);

Expand Down

0 comments on commit 87219c8

Please sign in to comment.