Merge "API: Use message-per-value for apihelp-query+iwbacklinks-param-prop"
[lhc/web/wiklou.git] / includes / resourceloader / ResourceLoaderEditToolbarModule.php
index 2e07911..f3fae0e 100644 (file)
@@ -32,6 +32,7 @@ class ResourceLoaderEditToolbarModule extends ResourceLoaderFileModule {
         *
         * @param string $value
         * @return string
+        * @throws Exception
         */
        private static function cssSerializeString( $value ) {
                if ( strstr( $value, "\0" ) ) {
@@ -64,25 +65,10 @@ class ResourceLoaderEditToolbarModule extends ResourceLoaderFileModule {
        }
 
        /**
-        * @param ResourceLoaderContext $context
-        * @return int UNIX timestamp
-        */
-       public function getModifiedTime( ResourceLoaderContext $context ) {
-               return max(
-                       parent::getModifiedTime( $context ),
-                       $this->getHashMtime( $context )
-               );
-       }
-
-       /**
-        * @param ResourceLoaderContext $context
-        * @return string Hash
+        * @return bool
         */
-       public function getModifiedHash( ResourceLoaderContext $context ) {
-               return md5(
-                       parent::getModifiedHash( $context ) .
-                       serialize( $this->getLessVars( $context ) )
-               );
+       public function enableModuleContentVersion() {
+               return true;
        }
 
        /**