Corrected placeholders

This commit is contained in:
Michael 2018-05-08 20:22:21 +00:00
parent 08bf19082c
commit 74908c0125
2 changed files with 2 additions and 2 deletions

View File

@ -207,7 +207,7 @@ class DBStructure
public static function update($verbose, $action, $install = false, array $tables = null, array $definition = null) { public static function update($verbose, $action, $install = false, array $tables = null, array $definition = null) {
if ($action && !$install) { if ($action && !$install) {
Config::set('system', 'maintenance', 1); Config::set('system', 'maintenance', 1);
Config::set('system', 'maintenance_reason', L10n::t('%1: Database update', DBM::date().' '.date('e'))); Config::set('system', 'maintenance_reason', L10n::t('%s: Database update', DBM::date().' '.date('e')));
} }
$errors = ''; $errors = '';

View File

@ -189,7 +189,7 @@ WHERE `hook` LIKE 'plugin_%'");
function update_1260() { function update_1260() {
Config::set('system', 'maintenance', 1); 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'))); Config::set('system', 'maintenance_reason', L10n::t('%s: 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` $items = dba::p("SELECT `id`, `owner-link`, `owner-name`, `owner-avatar`, `network` FROM `item`
WHERE `owner-id` = 0 AND `owner-link` != ''"); WHERE `owner-id` = 0 AND `owner-link` != ''");