1
0
Fork 0
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:
Starbeamrainbowlabs 2016-12-26 18:30:29 +00:00
parent d17925a662
commit 103889d41c
3 changed files with 3 additions and 3 deletions

View file

@ -5859,7 +5859,7 @@ class PeppermintParsedown extends ParsedownExtra
] ]
]; ];
if(empty($pageindex->$linkPage)) if(empty($pageindex->{makepathsafe($linkPage)}))
$result["element"]["attributes"]["class"] = "redlink"; $result["element"]["attributes"]["class"] = "redlink";
return $result; return $result;

View file

@ -230,7 +230,7 @@
"author": "Emanuil Rusev & Starbeamrainbowlabs", "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.", "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", "id": "parser-parsedown",
"lastupdate": 1482008539, "lastupdate": 1482776902,
"optional": false "optional": false
} }
] ]

View file

@ -369,7 +369,7 @@ class PeppermintParsedown extends ParsedownExtra
] ]
]; ];
if(empty($pageindex->$linkPage)) if(empty($pageindex->{makepathsafe($linkPage)}))
$result["element"]["attributes"]["class"] = "redlink"; $result["element"]["attributes"]["class"] = "redlink";
return $result; return $result;