| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
| |
duplicate code
|
|\ |
|
| |\
| | |
| | | |
remove some code duplication from syntax plugins
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This reads some duplication in the from of haveing a Doku_Parser_Mode
and Doku_Parser_Mode_Plugin class which are basically the same but only
the latter extends DokuWiki_Plugin. This avoids the performance/RAM
problems mentioned in my previous commit. An interface keeps both
logically together.
With PHP 5.4 further deduplication could be done via Traits.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This makes Doku_Parser_Mode inherit from DokuWiki_Plugin which allows
for the removal of a bunch of duplicate code form
DokuWiki_Syntax_Plugin. This makes the code easier to maintain and makes
sure all DokuWiki plugins are actual instances of DokuWiki_Plugin.
However this adds a bunch of functions to the "normal" parser modes that
don't need them which could have performance/RAM implications.
|
| | | |
|
|\| | |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
in 82d616353e4c3680d88f083eb6f88fe68de92904 we introduced passing the
raw match for syntax plugins to the plugin method of the renderer. This
was introduced for renderer plugins that might need access to the raw
syntax (like the table editor or WYSIWYG plugins). However the function
signature was never updated, making these additional parameter basically
secret. With strict standard this throws errors. This patch fixes this.
|
| |
| |
| |
| |
| |
| |
| | |
Prevent table entry syntax swallowing multiple preceeding blank lines
(a) this shouldn't be necessary, blank lines are handled by paragraph
processing
(b) avoids issues with greedy table syntax competing with plugins
|
|\|
| |
| |
| |
| | |
Conflicts:
inc/parser/xhtml.php
|
| | |
|
| | |
|
| |
| |
| |
| | |
\!empty/empty/isset as appropriate
|
| | |
|
| |\
| | |
| | | |
Display tablecell with rowspan at first row as empty cell. Fixes FS#2810
|
| | | |
|
| | | |
|
| |/
| |
| |
| |
| | |
Removed extraneous whitespace to eliminate errors reported by the
Squiz.WhiteSpace.SuperfluousWhitespace sniff.
|
| |
| |
| |
| |
| |
| |
| | |
Fix violations for the following sniff
DokuWiki.Functions.OpeningFunctionBrace
Also removed an extraneous semicolon.
|
| |
| |
| |
| |
| |
| |
| | |
Fix violations for Squiz.Commenting.DocCommentAlignment.SpaceBeforeTag
Conflicts:
inc/parser/xhtml.php
|
| |
| |
| |
| | |
Fix violations for Generic.PHP.LowerCaseConstant.Found
|
| |
| |
| |
| | |
Change indentation to ensure code confirms to CodeSniffer rules.
|
| |
| |
| |
| |
| |
| |
| | |
This adds the parameter extraction code from the xhtml renderer to the
metadata renderer in order to not to include the parameters in the id
that is recorded as link target. A test case checks that the link is
actually returned as backlink (fails without the fix).
|
| | |
|
| | |
|
| |
| |
| |
| | |
Similar to videos, all .ogg, .mp3 and .wav files with the same filename are automatically chosen as alternative sources when only one of them is mentioned in the media syntax.
|
| |
| |
| |
| | |
type attribute)
|
| | |
|
| |
| |
| |
| |
| |
| | |
All .webm, .ogv and .mp4 files with the same filename are automatically
chosen as alternative sources when only one of them is mentioned in the
media syntax.
|
|/ |
|
| |
|
|
|
|
| |
start '<file' or '<code'
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
It seems, some servers require a special Status: header for sending the
HTTP status code from PHP (F)CGI to the server. This patch introduces a
new function (adopted from CodeIgniter) for simplifying the status
handling.
|
| |
|
|
|
|
|
|
|
| |
This changes the previously static lastsecid into an instance variable,
this leads to consistent section edit ids when the xhtml renderer is
used more than once in a request. This makes it possible for test cases
to know the exact section edit id for an instruction array.
|
| |
|
|\
| |
| | |
fix E_STRICT errors FS#2427
|
| |
| |
| |
| |
| |
| |
| |
| | |
This commit fixes all E_STRICT messages shown when running the test
suite. There might be more problems not covered by tests, yet.
For compatibility reasons with plugins, E_STRICT errors are still
supressed.
|
|/ |
|
|
|
|
| |
In p_render() it is assumed that all renderers have a $doc variable
|
| |
|
| |
|
| |
|
| |
|