<?php
-
/**
* Opensearch action class.
*
* Class handler.
*
* @param array $args query arguments
- *
- * @return boolean false if user does not exist
+ *
+ * @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');
return true;
}
}
-