Skip to content
Snippets Groups Projects
  1. Jun 01, 2018
    • Andreas Gohr's avatar
      avoid creating expensive stacktrace in dbg_deprecated() · 85331086
      Andreas Gohr authored
      now the method is aborting early again unless the data is actually used
      85331086
    • Andreas Gohr's avatar
      introduce INFO_DEPRECATION_LOG event · 44455016
      Andreas Gohr authored
      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.
      44455016
  2. Aug 27, 2017
    • Phy's avatar
      Update check supports HTTPS · 6c5e3c5e
      Phy authored
      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).
      6c5e3c5e
  3. Mar 31, 2017
  4. Aug 09, 2016
    • Andreas Gohr's avatar
      Check the server has a sensible time · d6c7b502
      Andreas Gohr authored
      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.
      d6c7b502
  5. Jan 07, 2015
    • Andreas Gohr's avatar
      Remove error supression for file_exists() · 79e79377
      Andreas Gohr authored
      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.
      79e79377
  6. Oct 14, 2014
  7. Oct 10, 2014
    • Angus Gratton's avatar
      Fix for update messages never completely going away · 86c04d87
      Angus Gratton authored
      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.)
      86c04d87
  8. Sep 29, 2014
  9. Aug 15, 2014
  10. May 10, 2014
  11. Mar 06, 2014
  12. Feb 15, 2014
  13. Sep 11, 2013
  14. Aug 23, 2013
  15. Jun 02, 2013
  16. Apr 07, 2013
  17. Apr 01, 2013
  18. Dec 19, 2012
  19. Nov 12, 2012
  20. Nov 08, 2012
  21. Nov 06, 2012
  22. Aug 26, 2012
  23. Jul 28, 2012
  24. May 21, 2012
    • Robert Nitsch's avatar
      Fixes messages.txt's modification timestamp not being updated. · c07c5d93
      Robert Nitsch authored
      This bug occurs on systems where writing a zero-length string to an
      empty file does not update the file's modification timestamp.
      
      This leads to the messages.txt being downloaded almost endlessly, causing
      long delays for logged-in users. Visitors are not affected, because the
      messages.txt is only updated for logged-in users.
      c07c5d93
  25. Nov 08, 2011
  26. Nov 05, 2011
  27. Aug 20, 2011
  28. May 07, 2011
  29. May 02, 2011
  30. Jan 10, 2011
    • Michael Hamann's avatar
      Fix msg() calls when messages have already been printed · cc58224c
      Michael Hamann authored
      This commit fixes two bugs that occurred when msg() was called after
      html_msgarea() had already been called.
      - the $MSG array is now cleared when it has been printed (otherwise $MSG
        has been printed again when another msg() call was done)
      - headers_sent() didn't work for me, it always reported false although
        html_msgarea() had already been called which might be explainable with
        output buffering. This makes msg() now depend on the first call of
        html_msgarea() or headers_sent() in order to not to break msg() in
        ajax requests etc.
      cc58224c
  31. Sep 18, 2010
  32. Jun 27, 2010
Loading