]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Allow setting of a default note title, see #963 981/head
authorMark Gerarts <mark.gerarts@gmail.com>
Sun, 1 Oct 2017 12:19:57 +0000 (14:19 +0200)
committerMark Gerarts <mark.gerarts@gmail.com>
Sun, 1 Oct 2017 12:19:57 +0000 (14:19 +0200)
application/config/ConfigManager.php
doc/md/Shaarli-configuration.md
index.php

index 32f6ef6db5418044a12fd92959e19a2d7634a029..7ff2fe671e94b8b6809044a31d17331c92320237 100644 (file)
@@ -317,6 +317,7 @@ class ConfigManager
         $this->setEmpty('general.header_link', '?');
         $this->setEmpty('general.links_per_page', 20);
         $this->setEmpty('general.enabled_plugins', self::$DEFAULT_PLUGINS);
+        $this->setEmpty('general.default_note_title', 'Note: ');
 
         $this->setEmpty('updates.check_updates', false);
         $this->setEmpty('updates.check_updates_branch', 'stable');
index 374864147065318ea2b703253bea39e2daa29458..99b25ba785a98976c713ace111e3cbe9e55ff1ed 100644 (file)
@@ -55,6 +55,7 @@ _These settings should not be edited_
 - **links_per_page**: Number of shaares displayed per page.  
 - **timezone**: See [the list of supported timezones](http://php.net/manual/en/timezones.php).  
 - **enabled_plugins**: List of enabled plugins.
+- **default_note_title**: Default title of a new note.
 
 ### Security
 
index fb00a9fa3adb8d302f712fcbe7d7fc2a694409f4..43aab303c67f84c51fcf274cd478407af7fa7260 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1443,7 +1443,7 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history)
 
             if ($url == '') {
                 $url = '?' . smallHash($linkdate . $LINKSDB->getNextId());
-                $title = 'Note: ';
+                $title = $conf->get('general.default_note_title', 'Note: ');
             }
             $url = escape($url);
             $title = escape($title);