]> git.mxchange.org Git - friendica.git/commitdiff
More missed use
authorAdam Magness <adam.magness@gmail.com>
Mon, 22 Jan 2018 19:17:36 +0000 (14:17 -0500)
committerAdam Magness <adam.magness@gmail.com>
Mon, 22 Jan 2018 23:03:26 +0000 (18:03 -0500)
a few more missed use statements for L10n

include/text.php
mod/home.php

index 89e9e871d49bd1f5a8542ea3b5b0c34cb70f18bc..a366e78477019936c0a8a0d0019737f667fd2b64 100644 (file)
@@ -1069,9 +1069,9 @@ function search($s, $id = 'search-box', $url = 'search', $save = false, $aside =
 
        if (!$aside) {
                $values['$searchoption'] = [
-                                       t("Full Text"),
-                                       t("Tags"),
-                                       t("Contacts")];
+                                       L10n::t("Full Text"),
+                                       L10n::t("Tags"),
+                                       L10n::t("Contacts")];
 
                if (Config::get('system','poco_local_search')) {
                        $values['$searchoption'][] = L10n::t("Forums");
index dc571aaabd393aef51ee923e28c27b8d21e23d01..b1d00b000f556acf52b41773c205e1a4902128ef 100644 (file)
@@ -1,8 +1,11 @@
 <?php
-
+/**
+ * @file mod/home.php
+ */
 use Friendica\App;
 use Friendica\Core\Addon;
 use Friendica\Core\Config;
+use Friendica\Core\L10n;
 use Friendica\Core\System;
 use Friendica\Module\Login;
 
@@ -33,7 +36,7 @@ function home_content(App $a) {
        }
 
        $customhome = false;
-       $defaultheader = '<h1>'.((x($a->config,'sitename')) ? sprintf(t("Welcome to %s"), $a->config['sitename']) : "").'</h1>';
+       $defaultheader = '<h1>'.((x($a->config,'sitename')) ? sprintf(L10n::t("Welcome to %s"), $a->config['sitename']) : "").'</h1>';
 
        $homefilepath = $a->basepath . "/home.html";
        $cssfilepath = $a->basepath . "/home.css";