use Friendica\Core\Cache;
use Friendica\Core\Config;
use Friendica\Core\L10n;
+use Friendica\Core\System;
use Friendica\Database\DBM;
require_once "include/bbcode.php";
}
if (Config::get('system','local_search') && !local_user() && !remote_user()) {
- http_status_exit(403,
+ System::httpExit(403,
["title" => L10n::t("Public access denied."),
"description" => L10n::t("Only logged in users are permitted to perform a search.")]);
killme();
if (!is_null($result)) {
$resultdata = json_decode($result);
if (($resultdata->time > (time() - $crawl_permit_period)) && ($resultdata->accesses > $free_crawls)) {
- http_status_exit(429,
+ System::httpExit(429,
["title" => L10n::t("Too Many Requests"),
"description" => L10n::t("Only one search per minute is permitted for not logged in users.")]);
killme();
}
- if ($tag)
- $title = sprintf(L10n::t('Items tagged with: %s'), $search);
- else
- $title = sprintf(L10n::t('Results for: %s'), $search);
+ if ($tag) {
+ $title = L10n::t('Items tagged with: %s', $search);
+ } else {
+ $title = L10n::t('Results for: %s', $search);
+ }
$o .= replace_macros(get_markup_template("section_title.tpl"),[
'$title' => $title