Index: trunk/extensions/SemanticMediaWiki/includes/SMW_SetupLight.php |
— | — | @@ -141,7 +141,7 @@ |
142 | 142 | $wgAutoloadClasses['SMWSQLHelpers'] = $smwgIP . 'includes/storage/SMW_SQLHelpers.php'; |
143 | 143 | |
144 | 144 | // To ensure SMW remains compatible with pre 1.16. |
145 | | - if ( !array_key_exists( 'Html', $wgAutoloadClasses ) ) { |
| 145 | + if ( !array_key_exists( 'Html', $wgAutoloadLocalClasses ) ) { |
146 | 146 | $wgAutoloadClasses['Html'] = $smwgIP . 'compat/Html.php'; |
147 | 147 | } |
148 | 148 | |
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_Setup.php |
— | — | @@ -165,7 +165,7 @@ |
166 | 166 | $wgAutoloadClasses['SMWSQLHelpers'] = $stoDir . 'SMW_SQLHelpers.php'; |
167 | 167 | |
168 | 168 | // To ensure SMW remains compatible with pre 1.16. |
169 | | - if ( !array_key_exists( 'Html', $wgAutoloadClasses ) ) { |
| 169 | + if ( !class_exists( 'Html' ) ) { |
170 | 170 | $wgAutoloadClasses['Html'] = $smwgIP . 'compat/Html.php'; |
171 | 171 | } |
172 | 172 | |