r69437 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69436‎ | r69437 | r69438 >
Date:20:16, 16 July 2010
Author:neilk
Status:deferred
Tags:
Comment:
end() requires a real array, or strict warnings complains
Modified paths:
  • /trunk/extensions/JS2Support/mwEmbed/includes/NamedResourceLoader.php (modified) (history)

Diff [purge]

Index: trunk/extensions/JS2Support/mwEmbed/includes/NamedResourceLoader.php
@@ -117,7 +117,8 @@
118118 global $wgExtensionMessagesFiles;
119119
120120 // Get the module name
121 - $moduleName = end( explode('/', $modulePath ) );
 121+ $modulePathParts = explode('/', $modulePath );
 122+ $moduleName = end( $modulePathParts );
122123
123124 // Set the directory context for relative js/css paths
124125 self::$directoryContext = $modulePath;

Status & tagging log