Index: trunk/phase3/maintenance/refreshLinks.inc |
— | — | @@ -17,7 +17,9 @@ |
18 | 18 | $wgUser->setOption('math', MW_MATH_SOURCE); |
19 | 19 | |
20 | 20 | # Don't generate extension images (e.g. Timeline) |
21 | | - $wgParser->clearTagHooks(); |
| 21 | + if( method_exists( $wgParser, "clearTagHooks" ) ) { |
| 22 | + $wgParser->clearTagHooks(); |
| 23 | + } |
22 | 24 | |
23 | 25 | # Don't use HTML tidy |
24 | 26 | $wgUseTidy = false; |
— | — | @@ -110,13 +112,13 @@ |
111 | 113 | |
112 | 114 | function fixLinksFromArticle( $id ) { |
113 | 115 | global $wgTitle, $wgParser; |
114 | | - |
| 116 | + |
115 | 117 | $wgTitle = Title::newFromID( $id ); |
116 | 118 | $dbw = wfGetDB( DB_MASTER ); |
117 | 119 | |
118 | 120 | $linkCache =& LinkCache::singleton(); |
119 | 121 | $linkCache->clear(); |
120 | | - |
| 122 | + |
121 | 123 | if ( is_null( $wgTitle ) ) { |
122 | 124 | return; |
123 | 125 | } |