X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=blobdiff_plain;f=includes%2Fresourceloader%2FResourceLoaderModule.php;h=7351cb3ef5260b9c6232e0cdc14a04ef0c896af0;hb=28d17d2b10816e7f017dabde707f86761db04a05;hp=8bf71705d6f04d6b3f689d4c9133f247b00ca9ed;hpb=3bf240261c51e56d4321f36cf05b5e5c2f938c6c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/resourceloader/ResourceLoaderModule.php b/includes/resourceloader/ResourceLoaderModule.php index 8bf71705d6..7351cb3ef5 100644 --- a/includes/resourceloader/ResourceLoaderModule.php +++ b/includes/resourceloader/ResourceLoaderModule.php @@ -139,7 +139,7 @@ abstract class ResourceLoaderModule implements LoggerAwareInterface { * * @return string JavaScript code */ - protected function getDeprecationInformation() { + public function getDeprecationInformation() { $deprecationInfo = $this->deprecated; if ( $deprecationInfo ) { $name = $this->getName(); @@ -937,41 +937,6 @@ abstract class ResourceLoaderModule implements LoggerAwareInterface { return null; } - /** - * Back-compat dummy for old subclass implementations of getModifiedTime(). - * - * This method used to use ObjectCache to track when a hash was first seen. That principle - * stems from a time that ResourceLoader could only identify module versions by timestamp. - * That is no longer the case. Use getDefinitionSummary() directly. - * - * @deprecated since 1.26 Superseded by getVersionHash() - * @param ResourceLoaderContext $context - * @return int UNIX timestamp - */ - public function getHashMtime( ResourceLoaderContext $context ) { - if ( !is_string( $this->getModifiedHash( $context ) ) ) { - return 1; - } - // Dummy that is > 1 - return 2; - } - - /** - * Back-compat dummy for old subclass implementations of getModifiedTime(). - * - * @since 1.23 - * @deprecated since 1.26 Superseded by getVersionHash() - * @param ResourceLoaderContext $context - * @return int UNIX timestamp - */ - public function getDefinitionMtime( ResourceLoaderContext $context ) { - if ( $this->getDefinitionSummary( $context ) === null ) { - return 1; - } - // Dummy that is > 1 - return 2; - } - /** * Check whether this module is known to be empty. If a child class * has an easy and cheap way to determine that this module is