Index: branches/resourceloader/phase3/includes/ResourceLoader.php |
— | — | @@ -115,7 +115,7 @@ |
116 | 116 | /** |
117 | 117 | * Gets registration code for all modules, except pre-registered ones listed in self::$preRegisteredModules |
118 | 118 | * |
119 | | - * @return {string} JavaScript code for registereing all modules with client loader |
| 119 | + * @return {string} JavaScript code for registering all modules with the client loader |
120 | 120 | */ |
121 | 121 | public static function getModuleRegistrations() { |
122 | 122 | $scripts = ''; |
— | — | @@ -130,11 +130,11 @@ |
131 | 131 | else { |
132 | 132 | // Modules without dependencies pass one argument (name) to mediaWiki.loader.register() |
133 | 133 | if ( !count( $module->getDependencies() ) ) { |
134 | | - $registrations[] = $name; |
| 134 | + $registrations[] = array( $name, $module->getModifiedTime() ); |
135 | 135 | } |
136 | 136 | // Modules with dependencies pass two arguments (name, dependencies) to mediaWiki.loader.register() |
137 | 137 | else { |
138 | | - $registrations[] = array( $name, $module->getDependencies() ); |
| 138 | + $registrations[] = array( $name, $module->getModifiedTime(), $module->getDependencies() ); |
139 | 139 | } |
140 | 140 | } |
141 | 141 | } |