Allow setting of a default note title, see #963

This commit is contained in:
Mark Gerarts 2017-10-01 14:19:57 +02:00
parent 3512f44617
commit 722caa2090
3 changed files with 3 additions and 1 deletions

View 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');

View 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

View file

@ -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);