]> git.mxchange.org Git - friendica.git/blobdiff - mod/maintenance.php
Ops, one more left ...
[friendica.git] / mod / maintenance.php
index 2258fc5ce29337029df97a8fe60389d0659cc5f0..8727e4afb9f11f96c4efb25de694db22c7020e02 100644 (file)
@@ -1,10 +1,13 @@
 <?php
-
+/**
+ * @file mod/maintenance.php
+ */
 use Friendica\App;
 use Friendica\Core\Config;
+use Friendica\Core\L10n;
 
-function maintenance_content(App $a) {
-
+function maintenance_content(App $a)
+{
        $reason = Config::get('system', 'maintenance_reason');
 
        if (substr(normalise_link($reason), 0, 7) == 'http://') {
@@ -17,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
-       ));
+       ]);
 }