X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FMinify%2FMinifyPlugin.php;h=cfed0779baf37f94a1fcb932967e47b2f2e7c333;hb=f82dd4e14f8e4797f2a14cf10527bb71bc224b72;hp=5071fd5a1f21931d3f16c53b7863c8659835f7d7;hpb=8f81762d68ede590e53b929c77602f0e2db0ddc2;p=quix0rs-gnu-social.git diff --git a/plugins/Minify/MinifyPlugin.php b/plugins/Minify/MinifyPlugin.php index 5071fd5a1f..cfed0779ba 100644 --- a/plugins/Minify/MinifyPlugin.php +++ b/plugins/Minify/MinifyPlugin.php @@ -51,7 +51,6 @@ class MinifyPlugin extends Plugin * * @return boolean hook return */ - function onStartInitializeRouter($m) { $m->connect('main/min', @@ -121,7 +120,7 @@ class MinifyPlugin extends Plugin if($this->minifyInlineJs && $type=='text/javascript'){ $c = Cache::instance(); if (!empty($c)) { - $cacheKey = common_cache_key(self::cacheKey . ':' . crc32($code)); + $cacheKey = Cache::key(self::cacheKey . ':' . crc32($code)); $out = $c->get($cacheKey); } if(empty($out)) { @@ -141,7 +140,7 @@ class MinifyPlugin extends Plugin if($this->minifyInlineCss && $type=='text/css'){ $c = Cache::instance(); if (!empty($c)) { - $cacheKey = common_cache_key(self::cacheKey . ':' . crc32($code)); + $cacheKey = Cache::key(self::cacheKey . ':' . crc32($code)); $out = $c->get($cacheKey); } if(empty($out)) { @@ -177,8 +176,7 @@ class MinifyPlugin extends Plugin 'author' => 'Craig Andrews', 'homepage' => 'http://status.net/wiki/Plugin:Minify', 'rawdescription' => - _m('The Minify plugin minifies your CSS and Javascript, removing whitespace and comments.')); + _m('The Minify plugin minifies StatusNet\'s CSS and JavaScript, removing whitespace and comments.')); return true; } } -