]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/XCache/XCachePlugin.php
Fixed type hints:
[quix0rs-gnu-social.git] / plugins / XCache / XCachePlugin.php
index 2baa290ed294cee8cdc98f17a805fd4bf39f8d44..66a3b889b740d9b607f2eb7402c7859c480bebd9 100644 (file)
@@ -47,7 +47,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 XCachePlugin extends Plugin
 {
     /**
@@ -60,7 +59,6 @@ class XCachePlugin extends Plugin
      *
      * @return boolean hook success
      */
-
     function onStartCacheGet(&$key, &$value)
     {
         if (!xcache_isset($key)) {
@@ -84,7 +82,6 @@ class XCachePlugin extends Plugin
      *
      * @return boolean hook success
      */
-
     function onStartCacheSet(&$key, &$value, &$flag, &$expiry, &$success)
     {
         $success = xcache_set($key, serialize($value));
@@ -102,7 +99,6 @@ class XCachePlugin extends Plugin
      *
      * @return boolean hook success
      */
-
     function onStartCacheDelete(&$key, &$success)
     {
         $success = xcache_unset($key);
@@ -110,15 +106,15 @@ class XCachePlugin extends Plugin
         return false;
     }
 
-    function onPluginVersion(&$versions)
+    function onPluginVersion(array &$versions)
     {
         $versions[] = array('name' => 'XCache',
-                            'version' => STATUSNET_VERSION,
+                            'version' => GNUSOCIAL_VERSION,
                             'author' => 'Craig Andrews',
                             'homepage' => 'http://status.net/wiki/Plugin:XCache',
                             'rawdescription' =>
+                            // TRANS: Plugin description.
                             _m('Use the <a href="http://xcache.lighttpd.net/">XCache</a> variable cache to cache query results.'));
         return true;
     }
 }
-