Code style improvements from the reviews of
* Rename ´$serendipity['title_first'´] to
´$serendipity['backendBlogtitleFirst']´ and
make it boolean
* Add default to `serendipity_config.inc.php`.
* Change the condition in ´2k11/admin/index.tpl´
that the first branch is run by default
Signed-off-by: Thomas Hochstein <thh@inter.net>
Partially revert 7a0a9e2156
serendipity_specialchars() and others were made to
return "" when fed something that is not a string.
So boolean values (1 or TRUE) will be returned as "",
i.e. FALSE, breaking the blog in interesting ways
(i.e. displaying wrong configuration values and
saving them to the database).
Closes#476.
Signed-off-by: Thomas Hochstein <thh@inter.net>
The default page title of backend pages is
"section | blog title | $admin". You can
now change the order to "blog title | section
| $admin" by setting $serendipity['title_first']
to "blogtitle" in serendipity_config_local.inc.php
Closes#413
Signed-off-by: Thomas Hochstein <thh@inter.net>
The dashboard will show up to $dashboardLimit future
entries; if the number of future entries is still
less than $dashboardDraftLimit, it will add drafts
up to $dashboardDraftLimit.
If there are _no_ future entries, $entries is no
array, but has a value of "1"; count($entries)
will then be one, too, so one draft less will
be shown.
Closes#465.
Signed-off-by: Thomas Hochstein <thh@inter.net>
[] have to be URL encoded as %5B and %5d,
respectively. Percent signs have to be
doubled as those strings are used as
input for sprintf().
Signed-off-by: Thomas Hochstein <thh@inter.net>
When replacing 'sort by extension' with
'sort by name' in simple filter mode, 'sort by name'
was erroneously removed from non-simple filter
mode too (and replaced by a second incarnation of
'sort by extension').
Signed-off-by: Thomas Hochstein <thh@inter.net>