X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcache%2FCacheDependency.php;h=4ff10047a4a7637e5568769f915d93041857f92a;hb=aec80a1fb774715e43430ab583c190b79e468fce;hp=32dc8c0bea83c0b6c84b5cd7dc2909616e0edf74;hpb=a79d012e1c40dbeeb55a90b8099fea4aa9b1270b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/cache/CacheDependency.php b/includes/cache/CacheDependency.php index 32dc8c0bea..4ff10047a4 100644 --- a/includes/cache/CacheDependency.php +++ b/includes/cache/CacheDependency.php @@ -181,11 +181,11 @@ class FileDependency extends CacheDependency { function loadDependencyValues() { if ( is_null( $this->timestamp ) ) { - MediaWiki\suppressWarnings(); + Wikimedia\suppressWarnings(); # Dependency on a non-existent file stores "false" # This is a valid concept! $this->timestamp = filemtime( $this->filename ); - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); } } @@ -193,9 +193,9 @@ class FileDependency extends CacheDependency { * @return bool */ function isExpired() { - MediaWiki\suppressWarnings(); + Wikimedia\suppressWarnings(); $lastmod = filemtime( $this->filename ); - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); if ( $lastmod === false ) { if ( $this->timestamp === false ) { # Still nonexistent