]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Memcache/MemcachePlugin.php
Change status.net/wiki URLs to git.gnu.io
[quix0rs-gnu-social.git] / plugins / Memcache / MemcachePlugin.php
index c3ca5c135928e52e9c4d5a897f2b030f227a84f1..dc0f94367516e8d42417bb9931ef7876910e82f9 100644 (file)
@@ -48,7 +48,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 MemcachePlugin extends Plugin
 {
     static $cacheInitialized = false;
@@ -70,7 +69,6 @@ class MemcachePlugin extends Plugin
      *
      * @return boolean flag value
      */
-
     function onInitializePlugin()
     {
         if (self::$cacheInitialized) {
@@ -101,7 +99,6 @@ class MemcachePlugin extends Plugin
      *
      * @return boolean hook success
      */
-
     function onStartCacheGet(&$key, &$value)
     {
         $this->_ensureConn();
@@ -121,7 +118,6 @@ class MemcachePlugin extends Plugin
      *
      * @return boolean hook success
      */
-
     function onStartCacheSet(&$key, &$value, &$flag, &$expiry, &$success)
     {
         $this->_ensureConn();
@@ -160,7 +156,6 @@ class MemcachePlugin extends Plugin
      *
      * @return boolean hook success
      */
-
     function onStartCacheDelete(&$key, &$success)
     {
         $this->_ensureConn();
@@ -194,7 +189,6 @@ class MemcachePlugin extends Plugin
      *
      * @return void
      */
-
     private function _ensureConn()
     {
         if (empty($this->_conn)) {
@@ -242,15 +236,15 @@ class MemcachePlugin extends Plugin
         return $out;
     }
 
-    function onPluginVersion(&$versions)
+    function onPluginVersion(array &$versions)
     {
         $versions[] = array('name' => 'Memcache',
-                            'version' => STATUSNET_VERSION,
+                            'version' => GNUSOCIAL_VERSION,
                             'author' => 'Evan Prodromou, Craig Andrews',
-                            'homepage' => 'http://status.net/wiki/Plugin:Memcache',
+                            'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/Memcache',
                             'rawdescription' =>
+                            // TRANS: Plugin description.
                             _m('Use <a href="http://memcached.org/">Memcached</a> to cache query results.'));
         return true;
     }
 }
-