Commit Graph

12 Commits

Author SHA1 Message Date
d4f83172d9 code style: line breaks 2023-08-31 22:44:40 +02:00
24870174d2 Apply rector fixes to the rest of inc 2023-08-29 19:42:15 +02:00
ec34bb300b Update core code to make use of sexplode()
This makes use of our own explode mechanism everywhere were we expect a
fixed number of results.
2022-10-19 15:29:26 +02:00
4daaaa1a0b more guards in style.ini handling
Theoretically these keys should always be set, but it seems under some
conditions/templates/setups they aren't.

closes #3648
2022-05-12 15:50:29 +02:00
c0c77cd20b Merge branch 'master' into psr2
changes from commit b15f23f673 may have
been lost, because the code changed to much.

changes from commit df81ca99ee need to be
verified. we might need to do some more adjustments.

* master: (49 commits)
  translation update
  translation update
  translation update
  translation update
  translation update
  translation update
  translation update
  Update config.class.php
  translation update
  translation update
  Update lang.php
  Add ugc hint to nofollow
  add UGC hint
  translation update
  translation update
  use a script to fetch the correct phpunit
  Revert "output travis php version for easier debugging"
  setup databases for unit tests in travis
  output travis php version for easier debugging
  translation update
  ...
2019-10-10 09:22:24 +02:00
2e6e11ad01 fix bug in style.ini initialization in StyleUtils 2019-05-31 13:04:54 +02:00
e9f4a0f684 Merge branch 'master' into psr2
* master:
  translation update
  translation update
  Use config cascade for style.ini files
  translation update
  translation update
  use utf8_strtolower instead of strtolower
  add test for utf8 capital letters in search #2613
  compare cleaned pageid case-insensitive in search, fixes #2613
  add tests for #2613
  Defective transplantation of export from .htaccess
2019-03-06 20:38:53 +01:00
4593dbd285 Use config cascade for style.ini files
This simplifies style loading and allows the plugins like farmer to
extend the the loading of style files. Also adds some first unit tests.

Originally discussed in FS#2703 and #134

Squashed commit of the following:

commit 5ed550f6ba61a1d475b7572cbff18f0d790c78c2
Merge: 0cefed65e cab1833b0
Author: Andreas Gohr <gohr@cosmocode.de>
Date:   Thu Feb 28 13:38:46 2019 +0100

    Merge branch 'styleConfCascade' of https://github.com/annda/dokuwiki into annda-styleConfCascade

    * 'styleConfCascade' of https://github.com/annda/dokuwiki:
      Clean up StyleUtils
      Update StyleUtils test
      Fix array to boolean conversion
      Use better placeholder string in config cascade
      Calls to StyleUtils use the new constructor
      Add test for StyleUtils
      Refactor StyleUtils
      WIP add temporary test comparing two implementations of StyleUtils
      WIP add new style config cascade side by side with the old one

commit cab1833b09
Author: Anna Dabrowska <dabrowska@cosmocode.de>
Date:   Thu Feb 21 17:54:27 2019 +0100

    Clean up StyleUtils

commit 766e3907cf
Author: Anna Dabrowska <dabrowska@cosmocode.de>
Date:   Thu Feb 21 17:51:15 2019 +0100

    Update StyleUtils test

commit f5c08787dd
Author: Anna Dabrowska <dabrowska@cosmocode.de>
Date:   Thu Feb 21 12:51:53 2019 +0100

    Fix array to boolean conversion

commit c967169899
Author: Anna Dabrowska <dabrowska@cosmocode.de>
Date:   Thu Feb 21 12:38:55 2019 +0100

    Use better placeholder string in config cascade

commit 4845eff54d
Author: Anna Dabrowska <dabrowska@cosmocode.de>
Date:   Thu Feb 21 12:24:16 2019 +0100

    Calls to StyleUtils use the new constructor

commit 7a6337a8f8
Author: Anna Dabrowska <dabrowska@cosmocode.de>
Date:   Thu Feb 21 12:22:44 2019 +0100

    Add test for StyleUtils

commit 5ae9e8f69e
Author: Anna Dabrowska <dabrowska@cosmocode.de>
Date:   Thu Feb 21 12:16:57 2019 +0100

    Refactor StyleUtils

commit a2adcc9f37
Author: Anna Dabrowska <dabrowska@cosmocode.de>
Date:   Sat Feb 16 23:58:04 2019 +0100

    WIP add temporary test comparing two implementations of StyleUtils

commit 845c40c4fa
Author: Anna Dabrowska <dabrowska@cosmocode.de>
Date:   Sat Feb 16 23:59:41 2019 +0100

    WIP add new style config cascade side by side with the old one
2019-02-28 13:45:19 +01:00
e6686e88d3 fixed wrong quoting
Used the wrong quotes to split up the string. But actually, we can just
use a linebreak. Doesn't matter for HTML.
2018-04-28 12:17:18 +02:00
64159a61e9 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.
2018-04-27 19:07:43 +02:00
432cf0d1b5 fix: switch extensions if stylesheet in style.ini doesn't exist
This should give us some backwards compatibility for changing files in
dokuwiki template from .css to .less

This way template authors get a warning to adjust their template, it
won't break right away.

This should prevent breaking search pages in other templates due to
pull request #2286 .
2018-04-05 11:23:42 +02:00
fb1f9089ad refactor: extract css utils to an autoloaded class
The goal is to make the css replacement accessible in other contexts,
for example for the manifest.
2018-02-01 11:52:14 +01:00