resourceloader: Reduce width of module hash from 7 chars to 5
[lhc/web/wiklou.git] / includes / resourceloader / ResourceLoaderStartUpModule.php
index 58c9ee5..9cb8c4b 100644 (file)
@@ -291,7 +291,7 @@ class ResourceLoaderStartUpModule extends ResourceLoaderModule {
                                $states[$name] = 'error';
                        }
 
-                       if ( $versionHash !== '' && strlen( $versionHash ) !== 7 ) {
+                       if ( $versionHash !== '' && strlen( $versionHash ) !== ResourceLoader::HASH_LENGTH ) {
                                $e = new RuntimeException( "Badly formatted module version hash" );
                                $resourceLoader->outputErrorAndLog( $e,
                                                "Module '{module}' produced an invalid version hash: '{version}'.",