mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 04:23:01 +00:00
Bugfix: correct help page link for interwiki links
This commit is contained in:
parent
ed4bda5ebc
commit
b2b9606622
2 changed files with 8 additions and 6 deletions
|
@ -3,7 +3,9 @@ This file holds the changelog for Pepperminty Wiki. This is the master list of t
|
||||||
|
|
||||||
|
|
||||||
## v0.25-dev (unreleased)
|
## v0.25-dev (unreleased)
|
||||||
This is the next release of Pepperminty Wiki. We'll list changes here as we work on them.
|
This is the next release of Pepperminty Wiki, that hasn't been released yet.
|
||||||
|
|
||||||
|
- **Fixed:** Fixed link to the interwiki links documentation on the help page if interwiki links have not yet been setup.
|
||||||
|
|
||||||
|
|
||||||
## v0.24
|
## v0.24
|
||||||
|
|
|
@ -20,7 +20,7 @@ register_module([
|
||||||
$env->interwiki_index = json_decode(file_get_contents($paths->interwiki_index));
|
$env->interwiki_index = json_decode(file_get_contents($paths->interwiki_index));
|
||||||
}
|
}
|
||||||
|
|
||||||
$doc_help = "<p>$settings->sitename doesn't currently support interwiki links, but if you'd like it to, please contact ".htmlentities($settings->admindetails_name)." ($settings->sitename's administrator) through their contact details at the bottom of every page and point them at <a href='https://starbeamrainbowlabs.com/labs/peppermint/_docpress/06.5-Interwiki-Links.html'>the documentation on how to set it up</a>. It's really easy, and they can always <a href='https://github.com/sbrl/Pepperminty-Wiki/issues/new'>open an issue</a> if they get stuck :-)</p>\n";
|
$doc_help = "<p>$settings->sitename doesn't currently support interwiki links, but if you'd like it to, please contact ".htmlentities($settings->admindetails_name)." ($settings->sitename's administrator) through their contact details at the bottom of every page and point them at <a href='https://starbeamrainbowlabs.com/labs/peppermint/__nightdocs/06.5-Interwiki-Links.html'>the documentation on how to set it up</a>. It's really easy, and they can always <a href='https://github.com/sbrl/Pepperminty-Wiki/issues/new'>open an issue</a> if they get stuck :-)</p>\n";
|
||||||
if(!empty($env->interwiki_index)) {
|
if(!empty($env->interwiki_index)) {
|
||||||
$doc_help = <<<HELP_BLOCK
|
$doc_help = <<<HELP_BLOCK
|
||||||
<p>$settings->sitename supports inter-wiki links. Such a link sends the user elsewhere on the internet. By prefixing a page name with a prefix, the convenience of the internal link syntax described above can be exploited to send users elsewhere without having to type out full urls! Here are few examples (note that these prefixes are only examples, and probably aren't available on $settings->sitename - check the list below for supported prefixes):</p>
|
<p>$settings->sitename supports inter-wiki links. Such a link sends the user elsewhere on the internet. By prefixing a page name with a prefix, the convenience of the internal link syntax described above can be exploited to send users elsewhere without having to type out full urls! Here are few examples (note that these prefixes are only examples, and probably aren't available on $settings->sitename - check the list below for supported prefixes):</p>
|
||||||
|
|
Loading…
Reference in a new issue