| Commit message (Collapse) | Author | Age |
|
|
|
| |
created AuthDeletePlugin and AuthCaseInsensitivePlugin under dokuwiki\test\mock
|
| |
|
|
|
|
|
|
| |
PHP 5.6 and 7.0 won't throw ArgumentCountError. In this case, we use
set_error_handler on E_WARNING and throw exceptions if it's about argument
missing.
|
|
|
|
|
| |
This makes sure PHPUnit won't convert warnings into exceptions, and thus behaves
as the same as regular DokuWiki where E_NOTICE is suppressed.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
This is caused by a PHP 7.1 change:
https://www.php.net/manual/en/migration71.incompatible.php
#migration71.incompatible.too-few-arguments-exception
Previously call_user_func_array will make those missing arguments
to NULL without throwing an exception.
|
|
|
|
|
|
| |
most are array params and one int. Note that before if they were not present
from the remote request, a null will be applied to the argument, so this is
actually applying the correct data type on the arguments.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Nowadays it is not necessary to specify "type" or "charset" attribute at <script> tag:
1. "type" attribute defaults to "application/javascript", so there is no need to specify that. The recent value "text/javascript" is obsolete in favor of the default "application/javascript", as stated e.g. here: https://www.iana.org/assignments/media-types/media-types.xhtml#text
2. "charset" attribute of the <script> tag defaults to encoding be the same as the encoding of the script element's node document. As DokuWiki's default encoding is "utf-8", there is no need to specify this encoding in external resources. See: https://html.spec.whatwg.org/multipage/scripting.html#the-script-element
Manual merging, closes #2921.
Co-Authored-By: petrkajzar <58340153+petrkajzar@users.noreply.github.com>
|
|\
| |
| | |
Show pencil symbol on preview
|
|/ |
|
|\
| |
| | |
Translation update (no)
|
|/ |
|
|\
| |
| | |
jquery-migrate: replace on()/trigger() shorthand and use prop() for disabled attr
|
|/
|
|
|
|
| |
attr
Related to #1546.
|
|\
| |
| | |
GitHub workflow adjustments
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Splitting them out allows for plugins to use _test/phpcs.xml as the
basis for their own linting without having an overly permissive coding
standard.
Also, this makes it more obvious and painful that these are just
intended as temporary exceptions and should be actually fixed.
The rule `Generic.ControlStructures.InlineControlStructure.NotAllowed`
has its comment adjust to make it clear that this is an intended
deviation from the PSR-2/PSR-12 coding standard.
The rule `PSR1.Classes.ClassDeclaration.MissingNamespace` has to remain
in the DokuWiki coding standard as the plugin base classes can currently
not reasonably be in namespaces.
|
| |
| |
| |
| |
| | |
This should make the code style checks also run on pull requests the
come from forks. Maybe also on old pull requests?
|
|\ \
| | |
| | | |
refactor Extension manager
|
| | |
| | |
| | |
| | | |
The "report bugs" link in the plugin's home page may be located to the same page in some extensions.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
render <br> after <input> tag inside <label class="block"> elements.
to be compatible with Doku_Form::form_textfield(), form_filefield()
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |\ \
| |/ /
|/| | |
|
|\ \ \
| | | |
| | | | |
Restore Doku_Parser backward compatibility
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Some plugins, for example the move plugin, use their own handler class.
We need to give these plugins time to adjust their code.
This should restore the functionality of the move plugin. We still need
to extract the handler class itself.
It also adds another debug method for triggering the deprecation event,
since none of the two existing methods are suitable here. This
dbgCustomDeprecationEvent method should be used sparingly and only where
the other two don't work.
Co-authored-by: Phy <git@phy25.com>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Apparently, #2358 introduced a breaking change to the constructor and
usage of Doku_Parser, which broke some plugins, e.g. the move plugin in
michitux/dokuwiki-plugin-move#176
This patch should restore the legacy behavior of this deprecated class.
|
|\ \ \ \
| | | | |
| | | | | |
Defer javascript and add feature Flag
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This adds a feature flag for the jQuery and main-js requests added in
#2786 and #2958. This adds only a single feature flag since deferring
jQuery without deferring the main javascript request is likely to cause
errors and confusion.
The feature flag defaults to "on" as this should be unproblematic except
for a few plugins. Also, with this flag being on by default, it should
see more usage and is more likely to uncover existing issues.
This feature flag should be removed once this feature is deemed safe.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
GooglePage Speed Insights rank up 5-10 points
Otherwise, the browser render is waiting for loading and compiling big CDN script libraries
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
Better callable support in Event default actions
|
| | |_|/
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Instead of parsing the passed callback ourselves, this patch relies on
call_user_func_array() instead to call an Event's default action. This
ensures all possible ways to define a callback (including static
methods) can be used.
This should fix a problem mentioned in #2943
|
|\ \ \ \
| | | | |
| | | | | |
Translation update (nl)
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
Translation update (sr)
|
|/ / / / |
|
|\ \ \ \
| |_|/ /
|/| | | |
allow windows shares for Edge browser
|
| | | | |
|
| |/ /
|/| |
| | |
| | |
| | | |
This flag only causes parameters with empty strings to be skipped,
not all empty() values.
|
|\ \ \
| | | |
| | | | |
Sort plugins in Config Manager and Extension Manager
|
| | | | |
|
| |\ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | | |
remove unnecessary "public"
|