Go to file
Andreas Gohr bdf09125c4 set page context in Handler
Under some circumstances it is useful to know if the current parsing
process is running in a page context or not.

One of the examples is the struct plugin's use of the PARSER_HANDLER_DONE
event to automatically inject its own output instruction. Currently this
instruction is injected in each and every processing and only on rendering
is decided if there is anything to output.

This patch injects a page hint into the Handler when the handler was
created from our p_wiki_xhtml() method (and only then). Plugins can use
the getPage() method to check the context if needed.

Note: currently p_wiki_xhtml() also modifies the global $ID variable
which might also used as context hint (but will also be set during
on-the-fly renders, eg. the preview intro text).

It would probably be a good idea to check if it would be better when all
handle methods rely on getPage() instead of global $ID instead. This
would be a major change in parsing though and needs serious testing
while this addition has basically no consequences currently.
2020-09-28 16:59:46 +02:00
.github/workflows Split out temporary code style excludes 2020-02-19 10:55:56 +01:00
_test Merge pull request #3115 from moisesbr-dw/sort-with-collator 2020-08-26 10:06:20 +02:00
bin Merge pull request #3115 from moisesbr-dw/sort-with-collator 2020-08-26 10:06:20 +02:00
conf Merge pull request #3000 from splitbrain/license-lang 2020-05-01 19:32:25 +02:00
data readd lib/exe/indexer.php for now. fixes #3137 2020-06-04 13:29:53 +02:00
inc set page context in Handler 2020-09-28 16:59:46 +02:00
lib Merge pull request #3253 from splitbrain/issue3250 2020-09-08 08:38:18 +02:00
vendor increase minimum PHP version to 7.2 2020-08-12 17:39:37 +02:00
.editorconfig updated .editorconfig 2015-07-25 22:04:59 +01:00
.gitattributes ignore the .github directory for exports 2020-06-02 10:21:53 +02:00
.gitignore replace Doku_CLI with splitbrain\phpcli\CLI 2017-11-10 14:22:02 +01:00
.htaccess.dist Fix .htaccess files for Apache 2.4 (and 2.2) 2018-06-17 16:48:11 +02:00
.travis.yml don't test on old PHP releases anymore 2020-08-12 17:41:18 +02:00
COPYING updated GPL2 license text (fixes whitespace issues and typos and updates FSF address) 2011-12-11 12:21:56 +00:00
README link to https sites 2020-04-07 13:31:46 +02:00
appveyor.yml decrease php versions by one 2018-05-17 10:00:49 +02:00
composer.json increase minimum PHP version to 7.2 2020-08-12 17:39:37 +02:00
composer.lock increase minimum PHP version to 7.2 2020-08-12 17:39:37 +02:00
doku.php Release preparation 2020-07-29 11:32:06 +02:00
feed.php Renamed constant to RECENTS_ONLY_CREATION 2020-03-09 20:24:19 -04:00
index.php Merge branch 'pr/3111' into master 2020-09-10 09:26:38 +02:00
install.php Installer: check for XML parser method. fixes #3207 2020-07-27 12:34:16 +02:00

README

All documentation for DokuWiki is available online
at https://www.dokuwiki.org/

For Installation Instructions see
https://www.dokuwiki.org/install

DokuWiki - 2004-2020 (c) Andreas Gohr <andi@splitbrain.org>
                         and the DokuWiki Community
See COPYING and file headers for license info