mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 22:13:34 +00:00
Use ResourceLoaderModule::safeFilemtime instead of using filemtime directly
Change-Id: Ic3a3a23e31b57b1508757ee6a1b0888b4e5f6cce
This commit is contained in:
parent
84cb0cac7b
commit
e64c3bfd1d
|
@ -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__ )
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue