mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-25 17:23:00 +00:00
Bugfix: Push page path through makepathsafe when detecting redlinks
This commit is contained in:
parent
d17925a662
commit
103889d41c
3 changed files with 3 additions and 3 deletions
|
@ -5859,7 +5859,7 @@ class PeppermintParsedown extends ParsedownExtra
|
|||
]
|
||||
];
|
||||
|
||||
if(empty($pageindex->$linkPage))
|
||||
if(empty($pageindex->{makepathsafe($linkPage)}))
|
||||
$result["element"]["attributes"]["class"] = "redlink";
|
||||
|
||||
return $result;
|
||||
|
|
|
@ -230,7 +230,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 some weight to your installation, and also *requires* write access to the disk on first load.",
|
||||
"id": "parser-parsedown",
|
||||
"lastupdate": 1482008539,
|
||||
"lastupdate": 1482776902,
|
||||
"optional": false
|
||||
}
|
||||
]
|
|
@ -369,7 +369,7 @@ class PeppermintParsedown extends ParsedownExtra
|
|||
]
|
||||
];
|
||||
|
||||
if(empty($pageindex->$linkPage))
|
||||
if(empty($pageindex->{makepathsafe($linkPage)}))
|
||||
$result["element"]["attributes"]["class"] = "redlink";
|
||||
|
||||
return $result;
|
||||
|
|
Loading…
Reference in a new issue