5105 Commits

Author SHA1 Message Date
onli
4046d811a7 Merge pull request #507 from th-h/thh-506
Akismet has a POST API, not a GET API. :)
2017-04-21 13:05:10 +02:00
Thomas Hochstein
6751bd8d52 Akismet has a POST API, not a GET API. :)
Closes #506.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2017-04-21 13:01:11 +02:00
onli
2debad91d0 Workaround: Add smartyvars.uriargs to cache key
The freetags plugin sets this->displaytag in the frontend_fetchentries hook, and only sets clean_page if it sees that variable in the entry_display hook. The result is that wrong entries are shown on tag pages. Adding the smartyvars allows caching the correct $entries the plugin would have returned, working around that limitation without simulatign the frontend_fetchentries hook.
2017-04-20 17:42:48 +02:00
onli
2b4ddde690 Drop outer printEntries Cache 2017-04-20 01:23:07 +02:00
onli
bf213b752d Drop outer printEntries cache 2017-04-20 01:19:43 +02:00
onli
e61d38a61d Cache: Add additional state variables + single entry mode
fetchEntries is heaviliy realient on glboal state variables, and that was missed initially. The last commit c8bbb35aacee7af8527820f3d3d5fd47d1dbf340 fixed that partially, but did not catch all global state variables. Additionally, this fixed the clean_page mode as used by staticpage by adding the logic and event hook to printEntriesCached
2017-04-20 01:07:24 +02:00
onli
c8bbb35aac Fix cache by getting & setting global state variables
See https://board.s9y.org/viewtopic.php?p=10447129#p10447129. Missed in #345
2017-04-19 01:11:34 +02:00
onli
b6b989440d Document rel=trackback (#438) 2017-04-17 15:18:06 +02:00
Matthias Mees
e6cf472b01 Merge pull request #504 from th-h/thh-news
Add PR #493 to NEWS.
2017-04-16 15:09:10 +02:00
Thomas Hochstein
7dfed291ae Add PR #493 to NEWS.
PR #493 was
"Dashboard: Redo display of drafts/future entries."

Signed-off-by: Thomas Hochstein <thh@inter.net>
2017-04-16 14:55:19 +02:00
Matthias Mees
c43b419939 Add German translation + UTF-8 lang files 2017-04-16 10:11:26 +02:00
onli
02b3959ac4 Merge branch 'master' of github.com:s9y/Serendipity 2017-04-16 01:17:39 +02:00
onli
88a89436ae responsive: Use default thumbnail in srcset (#474)
Also, use width to detect if the user only selected a thumbnail, and accordingly reduce the srcset selection
2017-04-16 01:15:27 +02:00
onli
284fffb750 Merge pull request #503 from th-h/thh-487
Fix comment preview for logged-in user.
2017-04-15 23:26:53 +02:00
onli
c585f73f8c Init responsive images core plugin (#474) 2017-04-15 23:08:54 +02:00
onli
e1733604a5 Merge pull request #493 from th-h/thh-dashboard-entries
Dashboard: redo display of drafts / future entries
2017-04-15 12:01:21 +02:00
onli
18f6429f32 Add rel=trackback header and discovery (#438) 2017-04-15 02:19:45 +02:00
Matthias Mees
565b8ef51d Fix PHP syntax errors
Introduced in 019dc37836bff66443c096f9c88f62670f3c2350
2017-04-13 20:25:22 +02:00
Thomas Hochstein
68a6a58780 Fix comment preview for logged-in user.
Comment form data was unconditionally overwritten
by user data. Make that conditional ...

Fixes #487

Signed-off-by: Thomas Hochstein <thh@inter.net>
2017-04-13 19:19:02 +02:00
Matthias Mees
02542a4527 Merge pull request #502 from th-h/thh-news
Add some NEWS items.
2017-04-13 14:42:53 +02:00
Thomas Hochstein
721c2a07d4 Add some NEWS items.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2017-04-13 14:26:07 +02:00
Matthias Mees
c8d9e7c5c8 Merge pull request #501 from th-h/thh-localconfig
Add comment to serendipity_config_local.inc.php
2017-04-13 14:25:54 +02:00
Thomas Hochstein
019dc37836 Add comment to serendipity_config_local.inc.php
Refer users to the code primer on docs.s9y.org
and serendipity_config.inc.php for a list of
special variables and their defaults.

Fixes #469.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2017-04-13 14:13:14 +02:00
onli
6a6a402cc3 Merge pull request #497 from th-h/thh-netdns2
Add Net/DNS2.php 1.4.3 to core.
2017-04-13 12:50:16 +02:00
Matthias Mees
594c8177f5 Merge pull request #496 from th-h/thh-plugins-emptygroup
Suppress empty groups in plugin list.
2017-04-13 12:43:08 +02:00
Thomas Hochstein
099c06f11d Add Net/DNS2.php 1.4.3 to core.
Fixes #459

See https://pear.php.net/package/Net_DNS2/

Signed-off-by: Thomas Hochstein <thh@inter.net>
2017-04-13 12:39:41 +02:00
Thomas Hochstein
07261b0389 Suppress empty groups in plugin list.
As suggested by @garvinhicking in #484

Fixes #484

Signed-off-by: Thomas Hochstein <thh@inter.net>
2017-04-13 12:19:21 +02:00
Garvin Hicking
6be1fb1d02 Merge pull request #494 from th-h/thh-deletebutton
Reformat delete button as icon button, in front of "preview".
2017-04-13 11:02:09 +02:00
Garvin Hicking
e7e030d54d Merge pull request #491 from th-h/thh-deletebutton
Add a delete button to the backend entry form.
2017-04-13 10:42:16 +02:00
Thomas Hochstein
481b821bae Dashboard: move defaults to serendipity_config
Signed-off-by: Thomas Hochstein <thh@inter.net>
2017-04-13 10:11:27 +02:00
Thomas Hochstein
10caea1b92 Dashboard: redo display of drafts / future entries
See #488 for the discussion.

Merge `dashboardLimit` and `dashboardDraftLimit`
to `dashboardEntriesLimit`

Signed-off-by: Thomas Hochstein <thh@inter.net>
2017-04-13 10:05:19 +02:00
Thomas Hochstein
b524f7561b Reformat as icon button, in front of "preview".
Signed-off-by: Thomas Hochstein <thh@inter.net>
2017-04-13 09:55:12 +02:00
onli
59d17ee112 Merge pull request #492 from th-h/thh-backend-page-title
Redo backend page title order.
2017-04-13 09:24:40 +02:00
Thomas Hochstein
6b775e1cac Redo backend page title order.
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>
2017-04-13 00:18:28 +02:00
Thomas Hochstein
309d3fc7c5 Add a delete button to the backend entry form.
Closes 472.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2017-04-12 23:56:45 +02:00
onli
82b79ef4d6 Merge pull request #489 from th-h/thh-spartacus-default
Change Spartacus default mirror to github.
2017-04-12 18:44:17 +02:00
Thomas Hochstein
5ad93297ed Change Spartacus default mirror to github.
Netmirror is not very reliable currently.

Add Changelog file.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2017-04-12 18:37:30 +02:00
onli
19b023529d Merge pull request #448 from gnuheidix/admin_username
HTTP500: crashing when username is an array
2017-04-11 15:02:50 +02:00
onli
8c509d93b2 Merge pull request #468 from th-h/thh-465
Dashboard: show as many drafts as configured.
2017-04-11 14:50:08 +02:00
onli
fd412dad00 Merge pull request #480 from th-h/thh-413
Make backend page title order configurable.
2017-04-11 14:47:54 +02:00
Garvin Hicking
13750e09e5 next major release 2017-04-09 09:41:05 +02:00
Garvin Hicking
701ebe442d Rever this for the release, re-introduce later 2.1.1 2017-04-09 09:35:14 +02:00
Garvin Hicking
8fee805ca1 Prepare release 2.1.1 2017-04-09 09:15:55 +02:00
Mario Hommel
9365836307 Merge pull request #481 from th-h/thh-476
Fix broken compat layer.
2017-04-09 00:55:21 +02:00
Thomas Hochstein
c3dfe61b57 Fix broken compat layer.
Partially revert 7a0a9e215600284eb5aeea201d79563368f4c45b

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>
2017-04-09 00:49:10 +02:00
Thomas Hochstein
488267a6cf Make backend page title order configurable.
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>
2017-04-09 00:47:24 +02:00
Thomas Hochstein
0b85c80ac9 Dashboard: show as much drafts as configured.
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>
2017-04-09 00:46:51 +02:00
Garvin Hicking
2bedc9243e next version 2017-04-08 18:47:50 +02:00
Garvin Hicking
a794481941 bump release 2.1.0 2017-04-08 18:30:49 +02:00
Garvin Hicking
a385c10890 bump version 2017-04-08 18:23:46 +02:00