Use ResourceLoaderModule::safeFilemtime instead of using filemtime directly

Change-Id: Ic3a3a23e31b57b1508757ee6a1b0888b4e5f6cce
This commit is contained in:
Aaron Schulz 2015-03-31 10:08:22 -07:00 committed by Ori.livneh
parent 84cb0cac7b
commit e64c3bfd1d

View file

@ -171,7 +171,7 @@ class VisualEditorDataModule extends ResourceLoaderModule {
// Also invalidate this module if this file changes (i.e. when messages were
// added or removed, or when the Javascript invocation in getScript is changed).
// Use 1 because 0 = now, would invalidate continously
file_exists( __FILE__ ) ? filemtime( __FILE__ ) : 1
ResourceLoaderModule::safeFilemtime( __FILE__ )
);
}