Merge pull request #981 from mark-gerarts/default-note-title
Allow setting of a default note title, see #963
This commit is contained in:
commit
2f69b6d04e
3 changed files with 3 additions and 1 deletions
|
@ -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');
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue