Commit Graph
82 Commits
Author SHA1 Message Date
Thomas Hochstein d7b4e93292 After release preparations.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-10-16 09:49:27 +02:00
Thomas Hochstein 26c7f9af75 Release 2.3.2.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-10-16 09:43:59 +02:00
Thomas Hochstein 4b1641b5bf Release preparations.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-10-16 09:39:47 +02:00
Thomas Hochstein 5f8744e414 Assume uninitialized constant PLUGIN_LINK_SPARTACUS.
Fixes #638.

Backported from master branch.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-10-13 18:09:08 +02:00
Thomas Hochstein a2ad0bd9b5 Fix mangling of auto-generated mails.
s9y will encode the body of its auto-generated
mails as quoted-printable when imap_8bit() is
available. imap_8bit() will use "\r\n" as
linebreaks as mandated for SMTP transfer.
The result will be transmitted via PHP's
mail() function, using direct SMTP on
Windows and piping it to a MTA on Unix.

Most MTAs will cope just fine with those
linebreaks, while qmail will not; it will
replace all "\n" linebreaks with "\r\n",
so we get "\r\r\n" in our case. We can't
"fix" qmail (as its maintainer, if there
even is one, does not consider this
behaviour wrong), but we can replace the
line endings we get from imap_8bit().

The fix does work with qmail and Exim and
should work with sendmail and Postfix and
other MTAs, too. It may break sending
mail on Windows (i.e. lose all linebreaks),
but I think that's acceptable, as we'll
have more qmail installation than Windows
servers out there.

A workaround could be to set
serendipity['forceBase64']=true in
serendipity_config_local.inc.php, but I'd
prefer this fix.

Fixes #644.

Backported from master branch.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-10-13 18:08:59 +02:00
Thomas Hochstein e2c0c82aeb Revert "Fix pagination for "stable archives" in themes."
This reverts commit 4e662bf17c
in parts.

With this - now reverted - commit, the prev/next
arrows in pagination were swapped because they
were the wrong way around. Unfortunately, later on,
the root cause was fixes by "unswapping" the prev/next
links in core, so now the pagination arrows were
... eh ... wrongly swapped. So this commit has to
be reverted.

Backported from master branch.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-24 08:58:59 +02:00
Thomas Hochstein 40113925b6 After release preparations.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-21 07:34:37 +02:00
Thomas Hochstein a3a2b51848 Release 2.3.1
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-21 07:29:51 +02:00
Thomas Hochstein f944eb4cd3 Release preparations.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-21 07:25:34 +02:00
Thomas Hochstein 2e5e601ea2 Fix ML mass delete, enhance i18n.
* Fix media library (mass) delete.

* I18n for multimove.
  + Add MEDIA_DIRECTORY_MOVE.
  + Change German translation of "Move" to
    "Verschieben".

Cherry-picked from master.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-17 13:57:54 +02:00
Thomas Hochstein 1bc7c4bd0f [event_spamblock] Don't overwrite "moderate" flag.
Unconditionally setting $serendipity['csuccess']
to 'true' will override a "moderate" flag set by
another (spamblock) plugin.

Cherry-picked from master.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-17 13:57:54 +02:00
Thomas Hochstein 4e662bf17c Fix pagination and links for "stable archives".
* Fix core pagination for "stable archives".

  The current page will always be the current page,
  regardless of archive sorting order. Page 76 of
  86 pages will remain page 76, even if the archive
  sorting is changed; it won't become page 10.

* Fix pagination for "stable archives" in themes.

  Timeline and Bulletproof have pagination.
  Both need to swap the prev/next links for
  stable archives, as the sorting order has
  been reversed.

* Fix prev/next page links for stable archives.

  We shouldn't swap prev/next links for archive
  pages. With stable archives, the title page is
  the last page of the archive, not the first, so
  all other pages are "previos", and we should
  display it like that.

Cherry-picked from master.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-17 01:02:38 +02:00
Thomas Hochstein cd3464be70 Add i18n and German translations.
* "PLUGIN_ALL_UPDATED" was hardcoded.
* Add some missing German translation
  and fix some others.
* Add new constants to other languages
  via addlang.sh
* Remove wrongly added constants from
  plugin_lang.php

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-17 00:59:33 +02:00
Thomas Hochstein b88f789655 Add Spartacus links to plugin lists.
Quite some information is missing from
the list of installed plugins; and the
list of installable plugins has some
more information, but not everything
that is present on Spartacus, i.e.
the last modification date.

So let's add a link to the plugin entry
on Spartacus (in the chosen language
version).

Fixes #471.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-17 00:58:32 +02:00
Thomas Hochstein 19fe3715bd Add changes to NEWS.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-11 13:46:34 +02:00
Thomas Hochstein 2d4285bd52 Fix typo / unify PHP and smarty variable names.
"requirement_failures" from PHP is saved in
"requirements_failues" - "requirements" as
in plural, and with a typo. That doesn't make
sense. Let's use "requirement_failures"
everywhere.

Backported from master.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-11 03:01:18 +02:00
Thomas Hochstein 71331f5e07 Wording changes for plugin version display.
"Version" should be capitalized in German -
and anywhere at the start of a sentence or
line.

Furthermore, "UPGRADE_TO_VERSION" is not
the current version ("aktuelle version"),
but the version one could upgrade to.

Backported from master.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-11 03:01:18 +02:00
Thomas Hochstein 90b35f7933 ML delete file: add "?" to conformation question.
Backported from master.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-11 00:46:04 +02:00
Thomas Hochstein 15f0be45a2 [event_spartacus] Don't cache wrong plugin list.
Declaring $pluginlist as static will cache the
database query results and always return the same
list of plugins - no matter which type is queried
(sidebar or event).

This cache must be busted if another type of
plugins is queried.

Backported from master.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-11 00:45:39 +02:00
Thomas Hochstein 0240816507 2.3.x in the 2.3 branch is now our stable line.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-10 12:23:46 +02:00
Thomas Hochstein 4169484361 Release 2.3.0
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-10 12:11:27 +02:00
Thomas Hochstein aed19e6be3 Release preparations.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-10 12:08:32 +02:00
Thomas Hochstein 0d7094582f Patch HTTP_Request2 to fix PHP 7.4 issue.
Applying the patch from
https://pear.php.net/bugs/bug.php?id=23839&edit=12&patch=remove-obsolete-magic-quotes-function&revision=1564911457

Fixes #615

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-10 11:42:57 +02:00
Thomas Hochstein 32f1a958bf Add data from 2.1.6 release.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-09 22:20:07 +02:00
Thomas Hochstein e27e3e98c7 After release preparations.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-03 20:16:24 +02:00
Thomas Hochstein 2b3663b7f2 Release preparations.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-03 19:56:12 +02:00
Thomas Hochstein f418bcbd75 Prepare release: 2.3-rc1.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-03 19:41:11 +02:00
Thomas Hochstein b90448a71d Update news.
623b2f8879 and ba6ccb3dbb added.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-08-03 19:38:38 +02:00
Thomas Hochstein 5e36b3d56f Update NEWS and RELEASE (2.1.5).
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-05-01 19:49:37 +02:00
Thomas Hochstein e19222597b After release preparations.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-04-27 19:44:42 +02:00
Thomas Hochstein ff2e85e14d Release preparations.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-04-27 19:13:57 +02:00
Thomas Hochstein ac2575bd5b Add maintenance mode localization to NEWS.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-04-27 15:42:44 +02:00
Thomas Hochstein 2c0c337a6d Translate maintenance mode to German.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-04-27 15:30:10 +02:00
Thomas Hochstein 14893629ba Fix maintenance mode form.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-04-27 13:44:06 +02:00
Thomas Hochstein 5aca7bd1b4 Add missing tags.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-04-27 13:29:37 +02:00
Thomas Hochstein 18d3cfeeac Fix missing double quote.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-04-27 13:28:12 +02:00
Thomas Hochstein 96f82d9f3a Fix missing double quote and wrong bracket.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-04-27 13:26:03 +02:00
Thomas Hochstein 8469506b0f Run addlang.sh and add new constants to language files.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-04-27 13:10:26 +02:00
Thomas Hochstein ceaee85d3b Localize maintenance mode.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-04-27 13:10:23 +02:00
Thomas Hochstein b9223e0555 Fix missing single quote in language files.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-04-27 12:19:21 +02:00
Thomas Hochstein 2cc1f2d3f7 Fix missing newline, enhance translation (German).
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-04-27 11:53:23 +02:00
Thomas Hochstein 59bfb5095b Run addlang.sh and add new constants to language files.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-04-27 11:33:24 +02:00
Thomas HochsteinandGitHub f5207ea5f4 Merge pull request #582 from th-h/thh-remove-akismet-code
[spamblock] Remove dead code (Akismet spam toggle).
2018-09-30 13:49:48 +02:00
Thomas Hochstein 66e6293a92 [spamblock] Remove dead code (Akismet spam toggle)
This code was used to tell Akismet that a comment
is spam or ham. It can't be triggered as there
are no UI buttons, and it shouldn't be used as
it uses GET params. I don't think it will be
missed.

The relevant issue has been open for about two
and a half years without a new implementation,
so let's drop it. We can always re-implement it
later ...

Closes #405.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2018-09-30 11:37:12 +02:00
Thomas Hochsteinandonli 159f7d98b7 Check NEWS, remove duplicate items.
Remove two items from 2.2.1-alpha1, as they've
already been part of 2.1.2.

(And remove a typo.)

Signed-off-by: Thomas Hochstein <thh@inter.net>
2018-09-24 08:38:01 +02:00
Thomas Hochstein 4568bd892e Change message for auto-moderation after X days.
As "X" is looking like a placeholder that has
not been replaced, rephrase to "Auto-moderation
for old entries".

See https://board.s9y.org/viewtopic.php?f=2&t=24034#p10451071

Done for EN and DE, other languages will have
to be changed, too.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2018-09-22 13:35:04 +02:00
Thomas HochsteinandGitHub 275963c6fb Merge pull request #575 from th-h/master
[2k11] Update links in admin overview.
2018-09-16 00:02:39 +02:00
Thomas Hochstein e4567b255b [2k11] Update links in admin overview.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2018-09-15 23:58:38 +02:00
Thomas HochsteinandGitHub ef557fbb6a Merge pull request #573 from th-h/thh-pluginsync
Sync plugins in core and Spartacus.
2018-09-02 18:13:33 +02:00
Thomas Hochstein 17fc123a54 Sync quicksearch in core and Spartacus.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2018-09-02 18:10:04 +02:00
Thomas Hochstein 0b967cc765 Sync authors in core and Spartacus.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2018-09-02 18:07:26 +02:00
Thomas Hochstein 65c9aa63eb Sync gravatar in core and Spartacus.
Bump version to 1.63.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2018-09-02 17:59:58 +02:00
Thomas HochsteinandGitHub 9b8a547ca8 Merge pull request #568 from th-h/master
[event_gravatar] Fix paste error in legal info.
2018-08-04 03:09:41 +02:00
Thomas Hochstein 2f327ce463 [event_gravatar] Fix paste error in legal info.
Picked from additional plugins.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2018-08-04 03:02:52 +02:00
Thomas HochsteinandGitHub 5504f85373 Merge pull request #561 from th-h/thh-https
Update language constants.
2018-07-21 22:47:06 +02:00
Thomas Hochstein a42cc8da66 Fix broken link to documentation.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2018-07-21 22:45:48 +02:00
Thomas Hochstein 4387556026 Change links to HTTPS.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2018-07-21 22:45:44 +02:00
Thomas Hochsteinandonli 02b70e2266 Another fix to Spartacus after dropping netmirror.
See #548.

Expands b0fb8d2d12
by adding the necessary fix at another code point.

Fixes a whitespace issue (tabs -> spaces).

Add Changelog entries.

Needs to be backported to 2.1 after tests and review.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2018-03-30 13:17:51 +02:00
Thomas Hochstein 84b0cecfa3 Update RELEASE and NEWS for 2.1.2.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2018-03-25 08:45:12 +02:00
Thomas Hochstein 0f9bfe3fda Fix display of messages for comment editing.
All messages and errors were appended to $msg
and $errormsg, respectively, creating one long
unformatted string - mostly unreadable.

So we make $msg and $errormsg arrays instead
and iterate over those arrays in the template,
displaying each message separately.

Fixes #525.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2017-08-07 23:11:13 +02:00
Thomas Hochstein b7f479e9fc Display ChangeLog in plugin lists (if available).
Code was using wrong file path variable for checking
the presence of a ChangeLog file.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2017-07-09 15:07:47 +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
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
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
Thomas Hochstein 721c2a07d4 Add some NEWS items.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2017-04-13 14:26:07 +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
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
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
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
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
Thomas Hochstein c3dfe61b57 Fix broken compat layer.
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>
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
Thomas Hochstein 63786a41c2 Really fix concatenation of entry body for full feed
Commit 70c4ce8e40 will need double quotes around \n ...

See #335 for context.
2015-03-29 21:50:52 +02:00
Thomas Hochstein 992dcbd0c9 'language="javascript"' is optional.
Signed-off-by: Thomas Hochstein <thh@inter.net>
2014-06-09 18:50:28 +02:00
Thomas Hochstein 3acdd9403c Add URL encoding to CSS and .js links in <HEAD>.
Enocde & as &amp; to make validator happy.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2014-06-09 18:38:17 +02:00
Thomas Hochstein 990aab5f5d Add URL correct encoding to karma plugin.
[] 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>
2014-06-09 18:30:44 +02:00
Thomas Hochstein 66d0825a67 Re-add sort by name to ML non-simple filter.
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>
2014-05-26 18:40:33 +02:00