From d66fac1b61a3c8eabd084fcd9658cb3a4602bc4b Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 28 Feb 2016 14:30:14 -0500 Subject: [PATCH] Add default value for item_title_link option --- locales/fr_FR/translations.php | 4 ++-- models/schema.php | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/locales/fr_FR/translations.php b/locales/fr_FR/translations.php index 335b2f2..3a91818 100644 --- a/locales/fr_FR/translations.php +++ b/locales/fr_FR/translations.php @@ -242,6 +242,6 @@ return array( 'Groups' => 'Libellés', 'Back to the group' => 'Revenir sur le groupe', 'view' => 'voir', - // 'Item title links to' => '', - // 'Original' => '' + 'Item title links to' => 'Le titre des articles redirige vers', + 'Original' => 'Original' ); diff --git a/models/schema.php b/models/schema.php index 50f4dee..c550ab4 100644 --- a/models/schema.php +++ b/models/schema.php @@ -5,7 +5,13 @@ namespace Schema; use PDO; use Model\Config; -const VERSION = 43; +const VERSION = 44; + + +function version_44(PDO $pdo) +{ + $pdo->exec('INSERT INTO settings ("key", "value") VALUES ("item_title_link", "full")'); +} function version_43(PDO $pdo) {