r76226 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76225‎ | r76226 | r76227 >
Date:00:56, 7 November 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Follow up to r75871
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_Setup.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_SetupLight.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_SetupLight.php
@@ -141,7 +141,7 @@
142142 $wgAutoloadClasses['SMWSQLHelpers'] = $smwgIP . 'includes/storage/SMW_SQLHelpers.php';
143143
144144 // To ensure SMW remains compatible with pre 1.16.
145 - if ( !array_key_exists( 'Html', $wgAutoloadClasses ) ) {
 145+ if ( !array_key_exists( 'Html', $wgAutoloadLocalClasses ) ) {
146146 $wgAutoloadClasses['Html'] = $smwgIP . 'compat/Html.php';
147147 }
148148
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_Setup.php
@@ -165,7 +165,7 @@
166166 $wgAutoloadClasses['SMWSQLHelpers'] = $stoDir . 'SMW_SQLHelpers.php';
167167
168168 // To ensure SMW remains compatible with pre 1.16.
169 - if ( !array_key_exists( 'Html', $wgAutoloadClasses ) ) {
 169+ if ( !class_exists( 'Html' ) ) {
170170 $wgAutoloadClasses['Html'] = $smwgIP . 'compat/Html.php';
171171 }
172172

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r75871Fixed security issues in Special:Ask, and added a copy of the Html class, so ...jeroendedauw19:53, 2 November 2010

Status & tagging log