r36757 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36756‎ | r36757 | r36758 >
Date:19:43, 27 June 2008
Author:ialex
Status:old
Tags:
Comment:
E_STRICT
Modified paths:
  • /trunk/extensions/FormPreloadPostCache/FormPreloadPostCache.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FormPreloadPostCache/FormPreloadPostCache.php
@@ -16,7 +16,7 @@
1717 $wgHooks['OutputPageBeforeHTML'][] = 'FormPreloadPostCache::htmlHook';
1818
1919 class FormPreloadPostCache {
20 - function htmlHook( &$outputPage, &$text ) {
 20+ static function htmlHook( &$outputPage, &$text ) {
2121 global $wgRequest;
2222
2323 $dom = new DOMDocument;
@@ -95,6 +95,7 @@
9696
9797 $dom->encoding = 'utf-8';
9898 $result = $dom->saveHTML();
 99+ var_dump( $result ); die;
99100 if ( preg_match( '!<body>(.*)</body>!s', $result, $m ) ) {
100101 $text = $m[1];
101102 } else {
@@ -103,4 +104,3 @@
104105 return true;
105106 }
106107 }
107 -?>

Status & tagging log