Page MenuHomePhabricator

dpl.patch

Authored By
bzimport
Nov 21 2014, 11:09 PM
Size
1 KB
Referenced Files
None
Subscribers
None

dpl.patch

Index: DPLMain.php
===================================================================
--- DPLMain.php (revision 68798)
+++ DPLMain.php (working copy)
@@ -25,6 +25,11 @@
// note that this does not affect the article wiki source - a <html> tag in the wiki source
// will only be accepted if $rawHtml was set to true in the LocalSettings.php
$wgRawHtml = true;
+ //newer mediawiki needs the following:
+ if (method_exists('CoreTagHooks', 'html')) {
+ $parser->setHook( 'html', array( 'CoreTagHooks', 'html' ) );
+ }
+ //note, the above is hacky and insecure....
// logger (display of debug messages)
$logger = new DPLLogger();
@@ -2467,10 +2472,6 @@
}
if ( $sLastRevisionBefore . $sAllRevisionsBefore . $sFirstRevisionSince . $sAllRevisionsSince != '' ) {
- // later during output we are going to create html links to the revisions, so we must enable RawHtml
- // wiki syntax does not support links to revisions as far as I know -- gs
- global $wgRawHtml;
- $wgRawHtml = true;
$sSqlRevisionTable = $sRevisionTable . ' AS rev, ';
$sSqlRev_timestamp = ', rev_timestamp';

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6424
Default Alt Text
dpl.patch (1 KB)

Event Timeline