]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/opensearch.php
change default timeout setting for HTTPClient
[quix0rs-gnu-social.git] / actions / opensearch.php
index 8ebb5fc82495503f380cbef89f4b94c4861a54b5..b7ed3212c2caa25aa24fb333ee04a5b253d94a7d 100644 (file)
@@ -1,5 +1,4 @@
 <?php
-
 /**
  * Opensearch action class.
  *
@@ -51,19 +50,21 @@ class OpensearchAction extends Action
      * Class handler.
      *
      * @param array $args query arguments
-     * 
+     *
      * @return boolean false if user doesn't exist
      */
-    function handle($args)
+    function handle()
     {
-        parent::handle($args);
+        parent::handle();
         $type       = $this->trimmed('type');
         $short_name = '';
         if ($type == 'people') {
             $type       = 'peoplesearch';
-            $short_name = _('User Search');
+            // TRANS: ShortName in the OpenSearch interface when trying to find users.
+            $short_name = _('People Search');
         } else {
             $type       = 'noticesearch';
+            // TRANS: ShortName in the OpenSearch interface when trying to find notices.
             $short_name = _('Notice Search');
         }
         header('Content-Type: application/opensearchdescription+xml');
@@ -89,4 +90,3 @@ class OpensearchAction extends Action
         return true;
     }
 }
-