Skip to content
Snippets Groups Projects
  1. Jan 24, 2018
  2. Jan 05, 2018
  3. Dec 10, 2017
  4. Aug 29, 2017
    • Andreas Gohr's avatar
      refactor Ajax functions into a class · 16a367d4
      Andreas Gohr authored
      This doesn't really do much except wrapping the functions into a
      namespaced class. Autoloading takes care of loading the file.
      It's now possible to call lib/exe/ajax.php multiple times in a test
      request.
      16a367d4
  5. Aug 01, 2017
  6. Jul 28, 2017
  7. Jul 26, 2017
    • Michael Große's avatar
      Fix PHP Notices: Reduce error log noise · 8f34cf3d
      Michael Große authored
      While DokuWiki suppresses PHP Notices they are still a code smell and
      should be fixed. This fixes some PHP Notices that occurred.
      
      Some of these fixes could be refactored into nicer code once we move to
      PHP 7 and get access to the `??` operator.
      8f34cf3d
  8. Jul 23, 2017
  9. Jun 27, 2017
  10. May 18, 2017
  11. Mar 13, 2017
    • Gerry Weißbach's avatar
      Check for cache usage first · e7c68c4d
      Gerry Weißbach authored
      This is important because the $cache->cache would have been set already and have no impact on the delivered result. Meaning: two different requests could have resulted in the same result.
      e7c68c4d
  12. Feb 22, 2017
  13. Feb 12, 2017
  14. Feb 10, 2017
  15. Feb 09, 2017
    • Gerry Weißbach's avatar
      Use the flavour system to create individual css files. Only the default... · ef36714b
      Gerry Weißbach authored
      Use the flavour system to create individual css files. Only the default flavour (style / style.ini) will have the default styles for interwiki and filetypes. There are two new events:
      
       1. CSS_STYLES_INCLUDED to modify the list of stylesheet files for a certain mediatype or prevent the mediatype or styles within it. This event is fired for the interwiki and filetypes too, to prevent that they are included
          * The Data that is being sent to the event contains: list of files or the keyword DW_DEFAULT for the interwiki / filetypes; the mediatype, the flavour, if the data should be encapsulated by a default @media and the encapsualation prefix (e.g. @media screen)
       2. CSS_CACHE_USE to prevent the use of a cached version of the CSS, just like the JS event that already exists.
      ef36714b
    • Gerry Weißbach's avatar
      Add flavours to template ini files. The template will now be checked for... · 82edff4d
      Gerry Weißbach authored
      Add flavours to template ini files. The template will now be checked for multiple ini files and inserts them as a custom flavours. The css.php can detect these flavours and reads the stylesheet + replacements from there. If the flavour is not the default one (style.ini), replacements are loaded from the default flavour first to ensure that the colours are available. Flavours can define their own set of replacements.
      82edff4d
    • Gerry Weißbach's avatar
      Remove type and caching mechanism. The cache will be checked later and the... · 8b3ff808
      Gerry Weißbach authored
      Remove type and caching mechanism. The cache will be checked later and the type will be replaced by an md5 hash of the list of style files.
      8b3ff808
  16. Feb 08, 2017
    • Gerry Weißbach's avatar
      Spaces, not tabs. · 6ff51f7d
      Gerry Weißbach authored
      6ff51f7d
    • Gerry Weißbach's avatar
      Add Event to modify the list of javascript files before they are processed.... · 6d3bebff
      Gerry Weißbach authored
      Add Event to modify the list of javascript files before they are processed. This allows plugins to not have their - or other plugins - script delivered to the client. Creating the list of files upfront might add a little overhead which I think is OK when you can be certain that only JavaScript that really is needed will be delivered to the client.
      
      Multiple Javascript requests, e.g. to only send the jQuery part or just editor/administrator scripts, could be implemented with this modification (I know, jQuery has already been split).
      6d3bebff
  17. Feb 07, 2017
  18. Feb 03, 2017
  19. Dec 12, 2016
  20. Nov 26, 2016
    • Andreas Gohr's avatar
      split off jquery from other JS and add CDN option #1766 · 61537d47
      Andreas Gohr authored
      jQuery (and UI and Migrate) are now loaded separately from the rest of
      the JavaScript. This adds at least one HTTP request more but has some
      advantages:
      
      * browsers can cache it independently
      * the cache is only invalidated when versions update
      * we do not apply any transformations (replacements, minimizing, etc) on
        this code anymore which makes our dispatcher faster for the other JS
      * browsers seem to load (not execut) both (jquery and other) parallel,
        which might increase download speed a bit
      
      This split allowed for the introduction of a new config: jquerycdn. When
      enabled the 3 jquery files are loaded from jQueries CDN. This adds
      another two HTTP requests but:
      
      * since it's another host those files do not apply to the 4 request per
        host limit and can be loaded (not executed) in paralell which might
        increase download speeds a bit
      * the CDN is distributed worldwide which means files are requested from
        the closest location, increasing the download speeds
      * since these files/CDN are very popular, chances are high that people
        already have them cached in their browsers, reducing the download time
        to 0 and effectiely halving the javascript needed to download
      
      The option currently defaults to 'off', but I would argue 'on' would be
      the better default.
      61537d47
  21. Oct 01, 2016
  22. Jun 14, 2016
  23. May 16, 2016
    • Michael Große's avatar
      Fix xmlrpc constructor for php7 · ed8e6fd5
      Michael Große authored
      In php7 constructors with the same name as the class are deprecated. __construct() should be used.
      
      Depending on the server-configuration this could result in a warning which would break the API.
      ed8e6fd5
  24. Apr 30, 2016
  25. Apr 29, 2016
  26. Apr 27, 2016
  27. Apr 18, 2016
  28. Apr 04, 2016
Loading