History log of /dokuwiki/inc/infoutils.php (Results 76 – 100 of 155)
Revision Date Author Comments
# 85331086 01-Jun-2018 Andreas Gohr <andi@splitbrain.org>

avoid creating expensive stacktrace in dbg_deprecated()

now the method is aborting early again unless the data is actually used


# 44455016 01-Jun-2018 Andreas Gohr <andi@splitbrain.org>

introduce INFO_DEPRECATION_LOG event

This adds an event to dbg_deprecated(). This allows plugins to handle
deprecation warnings. One example would be @cosmocode/dokuwiki-plugin-sentry

One thing I d

introduce INFO_DEPRECATION_LOG event

This adds an event to dbg_deprecated(). This allows plugins to handle
deprecation warnings. One example would be @cosmocode/dokuwiki-plugin-sentry

One thing I don't like, but don't know how to avaoid is that this
function used to abort super early when $conf['allowdebug'] wasn't set.

However for the sentry plugin you probably would want logs, but still do
not show any debugging to end users (which allow debug would do).

So now the backtrace is always built, the event triggered and then
everything is sent to dbglog() which may simply throw everything away.

Suggestions on how to improve this welcome.

show more ...


# 64159a61 27-Apr-2018 Andreas Gohr <andi@splitbrain.org>

line lengths shortened

This makes sure all files use line lenghts shorter than 120 characters.

This is a quick fix. It might not always be the nicest change.


# b4f2363a 27-Apr-2018 Andreas Gohr <andi@splitbrain.org>

remove DOKU_INC checks

There is no need for this check, since these files should not have any
main code that is executed on direct call.

Fixes PSR1.Files.SideEffects.FoundWithSymbols


# 6c5e3c5e 27-Aug-2017 Phy <git@phy25.com>

Update check supports HTTPS

If SSL is not supported, a HTTP request will be made. In the log the request type will be indicated, but on the frontend no additional message would be shown (I think it'

Update check supports HTTPS

If SSL is not supported, a HTTP request will be made. In the log the request type will be indicated, but on the frontend no additional message would be shown (I think it's better to notify admins about non-SSL situations, but currently when this fetch encounter error, no error message will be shown, so it's better not to add any warning).

show more ...


# f50a239b 31-Mar-2017 Takamura <plehanov.v@gmail.com>

I supplemented the existing comments on the methods in which there was not enough information to the standard phpDoc.


# 3476bb81 31-Mar-2017 Andreas Gohr <andi@splitbrain.org>

increase minimum version requirement to PHP 5.6


# d6c7b502 09-Aug-2016 Andreas Gohr <andi@splitbrain.org>

Check the server has a sensible time

DokuWiki assumes that the server's time is correct. Especially page
revisions and cache handling depend on correct time. If that's not the
case it can lead to pr

Check the server has a sensible time

DokuWiki assumes that the server's time is correct. Especially page
revisions and cache handling depend on correct time. If that's not the
case it can lead to problems later (as mentioned in #1644).

This patch adds a very simple time check using the Date response header
from the DokuWiki server to our do=check mechanism.

show more ...


# 79e79377 07-Jan-2015 Andreas Gohr <gohr@cosmocode.de>

Remove error supression for file_exists()

In an older version of PHP a file_exists() call would issue a warning
when the file did not exist. This was fixed in later PHP releases. Since
we require PH

Remove error supression for file_exists()

In an older version of PHP a file_exists() call would issue a warning
when the file did not exist. This was fixed in later PHP releases. Since
we require PHP 5.3 now, there's no need to supress any error here
anymore. This might even give a minor performance boost.

show more ...


# 8702de7f 09-Dec-2014 Gerrit Uitslag <klapinklapin@gmail.com>

Merge remote-tracking branch 'origin/master' into scrutinizerissues

Conflicts:
inc/media.php
inc/plugin.php
inc/template.php
lib/plugins/authplain/_test/escaping.test.php
lib/plugins/syntax.php


# 001d05ed 14-Oct-2014 Andreas Gohr <andi@splitbrain.org>

new PHP minimum requirement is now 5.3.3

that's the version in Debian old stable


# 37b21a1b 14-Oct-2014 Andreas Gohr <andi@splitbrain.org>

use its own cache file per versions

this ensures there will be never, ever an outdated update message shown
after upgrade.


# 86c04d87 11-Oct-2014 Angus Gratton <gus@projectgus.com>

Fix for update messages never completely going away

The existing logic for messages.txt requires some valid update
response (ending in %) to the messages update check before it clears
the current me

Fix for update messages never completely going away

The existing logic for messages.txt requires some valid update
response (ending in %) to the messages update check before it clears
the current messages.

However update.dokuwiki.org appears to return an empty string response
if everything is up to date. (ie http://update.dokuwiki.org/check/46.1 )

As a result if there are update messages in messages.txt they don't
automatically go away after updating to the current version. The only
time they change is when a newer release comes out. The upgrade plugin
has logic in it to force a re-download of messages.txt, but currently
this just re-downloads the old update messages.

This change explicitly allows for "" as a valid "no messages"
indicator (distinct from false, which is the HTTP error indicator.)

show more ...


# 59bc3b48 29-Sep-2014 Gerrit Uitslag <klapinklapin@gmail.com>

more scrutinizer issue improvements


# 8f1efc43 15-Aug-2014 Andreas Gohr <andi@splitbrain.org>

sanity check update message

This should avoid problems when a WiFi login redirect intercepts the
update check.
See https://forum.dokuwiki.org/post/45076


# 60bf39dd 18-May-2014 Andreas Gohr <andi@splitbrain.org>

Merge pull request #693 from splitbrain/logdeprecated

log deprecated function calls FS#2399


# 6164d900 10-May-2014 Andreas Gohr <andi@splitbrain.org>

doc block updates


# 1419a485 10-May-2014 Andreas Gohr <andi@splitbrain.org>

log deprecated function calls FS#2399

This introduces a new dbg_deprecated() function which allows for easy
marking of deprecated functions. Each call is logged to the debuglog
when debuggin is enab

log deprecated function calls FS#2399

This introduces a new dbg_deprecated() function which allows for easy
marking of deprecated functions. Each call is logged to the debuglog
when debuggin is enabled.

show more ...


# 585bf44e 06-Mar-2014 Christopher Smith <chris@jalakai.co.uk>

amend $_SERVER to $INPUT->server


# 08d1a8df 15-Feb-2014 Andreas Gohr <andi@splitbrain.org>

show PHP version only to admins and managers FS#2655


# 2f7a0e94 11-Sep-2013 Matt Perry <matt@mattperry.com>

Fix CodeSniffer whitespace violoations

Removed extraneous whitespace to eliminate errors reported by the
Squiz.WhiteSpace.SuperfluousWhitespace sniff.


# d2d7bf0b 23-Aug-2013 Christoph Schindler <hop@30hopsmax.at>

FS#2840 fix typo in debug message


# 21c9604e 02-Jun-2013 Andreas Gohr <andi@splitbrain.org>

we now require PHP 5.2.0 at least


# f755f9ab 07-Apr-2013 Christopher Smith <chris@jalakai.co.uk>

change nomenclature from 'show' to 'allow' (fn from canshow to allowed)


# 64cafb1f 01-Apr-2013 Christopher Smith <chris@jalakai.co.uk>

for completeness (& defensive coding), test ['show'] against MSG_PUBLIC in case its redefined to a non-zero value


1234567