Skip to content

Commit

Permalink
WEB: Adding note about data files to wiki link
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunderforge authored and sev- committed Jun 8, 2022
1 parent d5d0317 commit 17a9263
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/OrmObjects/Compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ public function getNotes()
$dataFiles = $this->getGame()->getDataFiles();
if ($dataFiles) {
if (str_starts_with($dataFiles, "https://")) {
$links[] = "- [ScummVM Wiki]({$this->getGame()->getDataFiles()})";
$wikiLink = "- [ScummVM Wiki]({$this->getGame()->getDataFiles()})";
} else {
$links[] = "- [ScummVM Wiki](https://wiki.scummvm.org/index.php?title={$this->getGame()->getDataFiles()})";
$wikiLink = "- [ScummVM Wiki](https://wiki.scummvm.org/index.php?title={$this->getGame()->getDataFiles()})";
}
$links[] = $wikiLink . " (includes list of required data files)";
}
$wikipediaPage = $this->getGame()->getWikipediaPage();
if ($wikipediaPage) {
Expand Down

0 comments on commit 17a9263

Please sign in to comment.