]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/DiskCache/DiskCachePlugin.php
Profile::current() suits better here.
[quix0rs-gnu-social.git] / plugins / DiskCache / DiskCachePlugin.php
index 47d4b153cf6dff5335293516cea21a2e9d852cf5..967990c12fae0afcda1df95b19db2b2dc0fc2c7f 100644 (file)
@@ -44,7 +44,6 @@ if (!defined('STATUSNET')) {
  * @license   http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
  * @link      http://status.net/
  */
-
 class DiskCachePlugin extends Plugin
 {
     var $root = '/tmp';
@@ -64,7 +63,6 @@ class DiskCachePlugin extends Plugin
      *
      * @return boolean hook success
      */
-
     function onStartCacheGet(&$key, &$value)
     {
         $filename = $this->keyToFilename($key);
@@ -91,7 +89,6 @@ class DiskCachePlugin extends Plugin
      *
      * @return boolean hook success
      */
-
     function onStartCacheSet(&$key, &$value, &$flag, &$expiry, &$success)
     {
         $filename = $this->keyToFilename($key);
@@ -152,7 +149,6 @@ class DiskCachePlugin extends Plugin
      *
      * @return boolean hook success
      */
-
     function onStartCacheDelete(&$key, &$success)
     {
         $filename = $this->keyToFilename($key);
@@ -165,13 +161,14 @@ class DiskCachePlugin extends Plugin
         return false;
     }
 
-    function onPluginVersion(&$versions)
+    function onPluginVersion(array &$versions)
     {
         $versions[] = array('name' => 'DiskCache',
-                            'version' => STATUSNET_VERSION,
+                            'version' => GNUSOCIAL_VERSION,
                             'author' => 'Evan Prodromou',
                             'homepage' => 'http://status.net/wiki/Plugin:DiskCache',
                             'rawdescription' =>
+                            // TRANS: Plugin description.
                             _m('Plugin to implement cache interface with disk files.'));
         return true;
     }