Index: trunk/extensions/DynamicPageList/DPLMain.php |
— | — | @@ -25,6 +25,11 @@ |
26 | 26 | // note that this does not affect the article wiki source - a <html> tag in the wiki source |
27 | 27 | // will only be accepted if $rawHtml was set to true in the LocalSettings.php |
28 | 28 | $wgRawHtml = true; |
| 29 | + //newer mediawiki needs the following: |
| 30 | + if (method_exists('CoreTagHooks', 'html')) { |
| 31 | + $parser->setHook( 'html', array( 'CoreTagHooks', 'html' ) ); |
| 32 | + } |
| 33 | + //note, the above is hacky and insecure.... |
29 | 34 | |
30 | 35 | // logger (display of debug messages) |
31 | 36 | $logger = new DPLLogger(); |
— | — | @@ -2471,10 +2476,6 @@ |
2472 | 2477 | } |
2473 | 2478 | |
2474 | 2479 | if ( $sLastRevisionBefore . $sAllRevisionsBefore . $sFirstRevisionSince . $sAllRevisionsSince != '' ) { |
2475 | | - // later during output we are going to create html links to the revisions, so we must enable RawHtml |
2476 | | - // wiki syntax does not support links to revisions as far as I know -- gs |
2477 | | - global $wgRawHtml; |
2478 | | - $wgRawHtml = true; |
2479 | 2480 | |
2480 | 2481 | $sSqlRevisionTable = $sRevisionTable . ' AS rev, '; |
2481 | 2482 | $sSqlRev_timestamp = ', rev_timestamp'; |