1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-12-22 13:45:02 +00:00

Emergency patch for a weird warning

This commit is contained in:
Starbeamrainbowlabs 2016-03-25 17:52:32 +00:00
parent 5b445b239f
commit 8d7cdb3ce8
4 changed files with 6 additions and 4 deletions

View file

@ -36,7 +36,7 @@
- Save preprocessors now get passed an extra parameter, which contains the old page source.
- Changed the default parser to parsedown.
- Removed parsedown from the `parser-parsedown` module and replaced it with code that automatically downloads parsedown and parsedown extra on the first run.
- Removed Slimdown add from the parsedown parser and replaced it with a custom extension of parsedown extra.
- Removed Slimdown addition from the parsedown parser and replaced it with a custom extension of parsedown extra.
- Moved printable button to bottom bar and changed display text to "Printable version".
- Redirect pages now show in italics in page lists.
- Made other minor improvements to the page lists.

View file

@ -3814,7 +3814,8 @@ class PeppermintParsedown extends ParsedownExtra
array_unshift($this->InlineTypes["!"], "ExtendedImage");
$this->inlineMarkerList .= "{";
if(!is_array($this->InlineTypes["{"]))
if(!isset($this->InlineTypes["{"]) or
!is_array($this->InlineTypes["{"]))
$this->InlineTypes["{"] = [];
$this->InlineTypes["{"][] = "Template";
}

View file

@ -194,7 +194,7 @@
"author": "Emanuil Rusev & Starbeamrainbowlabs",
"description": "An upgraded (now default!) parser based on Emanuil Rusev's Parsedown Extra PHP library (https:\/\/github.com\/erusev\/parsedown-extra), which is licensed MIT. Please be careful, as this module adds a some weight to your installation, and also *requires* write access to the disk on first load.",
"id": "parser-parsedown",
"lastupdate": 1458824859,
"lastupdate": 1458928368,
"optional": false
}
]

View file

@ -77,7 +77,8 @@ class PeppermintParsedown extends ParsedownExtra
array_unshift($this->InlineTypes["!"], "ExtendedImage");
$this->inlineMarkerList .= "{";
if(!is_array($this->InlineTypes["{"]))
if(!isset($this->InlineTypes["{"]) or
!is_array($this->InlineTypes["{"]))
$this->InlineTypes["{"] = [];
$this->InlineTypes["{"][] = "Template";
}