Added maintenance notice
authorMichael <heluecht@pirati.ca>
Tue, 8 May 2018 18:46:47 +0000 (18:46 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 8 May 2018 18:46:47 +0000 (18:46 +0000)
src/Database/DBStructure.php
update.php

index bccd703..7cfb48d 100644 (file)
@@ -207,7 +207,7 @@ class DBStructure
        public static function update($verbose, $action, $install = false, array $tables = null, array $definition = null) {
                if ($action && !$install) {
                        Config::set('system', 'maintenance', 1);
-                       Config::set('system', 'maintenance_reason', L10n::t(': Database update', DBM::date().' '.date('e')));
+                       Config::set('system', 'maintenance_reason', L10n::t('%1: Database update', DBM::date().' '.date('e')));
                }
 
                $errors = '';
index 8d0fa96..b925268 100644 (file)
@@ -189,6 +189,7 @@ WHERE `hook` LIKE 'plugin_%'");
 
 function update_1260() {
        Config::set('system', 'maintenance', 1);
+       Config::set('system', 'maintenance_reason', L10n::t('%1: Updating author-id and owner-id in item and thread table. ', DBM::date().' '.date('e')));
 
        $items = dba::p("SELECT `id`, `owner-link`, `owner-name`, `owner-avatar`, `network` FROM `item`
                WHERE `owner-id` = 0 AND `owner-link` != ''");