]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/SphinxSearch/SphinxSearchPlugin.php
[TRANSLATION] Update license and copyright notice in translation files
[quix0rs-gnu-social.git] / plugins / SphinxSearch / SphinxSearchPlugin.php
index ad34a7cc151ebd509986b00104a88fcc13a97164..c19fa6a3bf6e52036a43eb4b4c49154d557c8619 100644 (file)
@@ -53,6 +53,8 @@ foreach($sphinxDefaults as $key => $val) {
  */
 class SphinxSearchPlugin extends Plugin
 {
+    const PLUGIN_VERSION = '2.0.0';
+
     /**
      * Automatically load any classes used
      *
@@ -66,9 +68,9 @@ class SphinxSearchPlugin extends Plugin
             include_once INSTALLDIR . '/plugins/SphinxSearch/' .
               strtolower($cls) . '.php';
             return false;
-        default:
-            return true;
         }
+
+        return parent::onAutoload($cls);
     }
 
     /**
@@ -105,12 +107,12 @@ class SphinxSearchPlugin extends Plugin
      *
      * @return boolean hook value
      */
-    function onPluginVersion(&$versions)
+    function onPluginVersion(array &$versions)
     {
-        $url = 'http://status.net/wiki/Plugin:SphinxSearch';
+        $url = 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/SphinxSearch';
 
         $versions[] = array('name' => 'SphinxSearch',
-            'version' => STATUSNET_VERSION,
+            'version' => self::PLUGIN_VERSION,
             'author' => 'Brion Vibber',
             'homepage' => $url,
             'rawdescription' =>