Commit graph

5 commits

Author SHA1 Message Date
Thomas Hochstein 1a67d98bbb Update dejure-plugin to version 1.6 from upstream. (#58)
* Update dejure-plugin to version 1.6 from upstream.

v1.6 was not yet published.

Improve fsockopen, switch to SSL, add user agent.

Signed-off-by: Thomas Hochstein <thh@inter.net>

* Bugfix: Don't cache results after errors.

djo_vernetzen_ueber_dejure_org() will return FALSE
instead of an output text if the API call fails
or results in any error.

But the "master" function djo_vernetzen() will call
integritaetskontrolle() anyway. The latter function
checks whether input and output texts match after
removing all added links. If the check succeeds, it
will return the output text; if the check fails, the
input text. So the result will always be TRUE.

And only after this will cache the output text if
it's not FALSE - which it can't be, ever. So if the
API call fails, the unmodified input text will be
cached.

But if we don't call integritaetskontrolle() after
API failures - which isn't necessary as the output
text is just FALSE anyway -, the FALSE will carry
through so nothing is cached.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2017-05-27 19:51:08 +02:00
Thomas Hochstein 3f67f1ab30 Update dejure-plugin to version 1.5 from upstream. (#57)
v1.5 taken from <https://dejure.org/vernetzung.html>
with author's consent.

Some minor changes to the database queries, trying
to be more compatible to other database backends,
see <https://board.s9y.org/viewtopic.php?f=10&t=21255>.

Update language files (as far as I speak those
languages).

Signed-off-by: Thomas Hochstein <thh@inter.net>
2017-05-22 20:28:26 +02:00
Garvin Hicking 71589a887f Remove $Id$ for CVS compoatibility. Thought I already did this some time ago?!?! 2013-08-12 09:49:28 +02:00
Garvin Hicking ab02bb4af4 Remove $Id$ 2011-12-25 10:07:20 +01:00
Garvin Hicking 516df79a4e Migrate plugins 2011-12-13 12:29:05 +01:00