Index: branches/resourceloader/phase3/includes/ResourceLoader.php |
— | — | @@ -189,11 +189,11 @@ |
190 | 190 | } |
191 | 191 | // Automatically register module |
192 | 192 | else { |
193 | | - // Modules without dependencies pass one argument (name) to mediaWiki.loader.register() |
| 193 | + // Modules without dependencies pass two arguments (name, timestamp) to mediaWiki.loader.register() |
194 | 194 | if ( !count( $module->getDependencies() ) ) { |
195 | 195 | $registrations[] = array( $name, $module->getModifiedTime( $lang, $skin, $debug ) ); |
196 | 196 | } |
197 | | - // Modules with dependencies pass two arguments (name, dependencies) to mediaWiki.loader.register() |
| 197 | + // Modules with dependencies pass three arguments (name, timestamp, dependencies) to mediaWiki.loader.register() |
198 | 198 | else { |
199 | 199 | $registrations[] = array( $name, $module->getModifiedTime( $lang, $skin, $debug ), |
200 | 200 | $module->getDependencies() ); |