Index: trunk/extensions/FormPreloadPostCache/FormPreloadPostCache.php |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | $wgHooks['OutputPageBeforeHTML'][] = 'FormPreloadPostCache::htmlHook'; |
18 | 18 | |
19 | 19 | class FormPreloadPostCache { |
20 | | - function htmlHook( &$outputPage, &$text ) { |
| 20 | + static function htmlHook( &$outputPage, &$text ) { |
21 | 21 | global $wgRequest; |
22 | 22 | |
23 | 23 | $dom = new DOMDocument; |
— | — | @@ -95,6 +95,7 @@ |
96 | 96 | |
97 | 97 | $dom->encoding = 'utf-8'; |
98 | 98 | $result = $dom->saveHTML(); |
| 99 | + var_dump( $result ); die; |
99 | 100 | if ( preg_match( '!<body>(.*)</body>!s', $result, $m ) ) { |
100 | 101 | $text = $m[1]; |
101 | 102 | } else { |
— | — | @@ -103,4 +104,3 @@ |
104 | 105 | return true; |
105 | 106 | } |
106 | 107 | } |
107 | | -?> |