]> git.mxchange.org Git - friendica.git/blobdiff - mod/maintenance.php
Ops, one more left ...
[friendica.git] / mod / maintenance.php
index c4839de79213503490372d9881fd8900850827d2..8727e4afb9f11f96c4efb25de694db22c7020e02 100644 (file)
@@ -1,9 +1,13 @@
 <?php
+/**
+ * @file mod/maintenance.php
+ */
+use Friendica\App;
+use Friendica\Core\Config;
+use Friendica\Core\L10n;
 
-use \Friendica\Core\Config;
-
-function maintenance_content(App $a) {
-
+function maintenance_content(App $a)
+{
        $reason = Config::get('system', 'maintenance_reason');
 
        if (substr(normalise_link($reason), 0, 7) == 'http://') {
@@ -16,8 +20,8 @@ function maintenance_content(App $a) {
        header('Status: 503 Service Temporarily Unavailable');
        header('Retry-After: 600');
 
-       return replace_macros(get_markup_template('maintenance.tpl'), array(
-               '$sysdown' => t('System down for maintenance'),
+       return replace_macros(get_markup_template('maintenance.tpl'), [
+               '$sysdown' => L10n::t('System down for maintenance'),
                '$reason' => $reason
-       ));
+       ]);
 }