[Scummvm-git-logs] scummvm-web master -> 23423a85990f84f2ab4312f7bd26c7d47b556efd
Mataniko
mataniko at gmail.com
Tue Aug 24 15:21:09 UTC 2021
This automated email contains information about 3 new commits which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .
Summary:
bd3aeff0e0 Adding MobyGames external link
ce6bb0cacf Changing to use Markdown for Mobygames hyperlink
23423a8599 Fixing check for mobyId
Commit: bd3aeff0e0f2e047d5cb41cf94e6a910a34a7def
https://github.com/scummvm/scummvm-web/commit/bd3aeff0e0f2e047d5cb41cf94e6a910a34a7def
Author: Thunderforge (wjherrmann at gmail.com)
Date: 2021-08-24T11:21:06-04:00
Commit Message:
Adding MobyGames external link
Future external links might be added for things like Wikipedia or the ScummVM Wiki.
Changed paths:
include/OrmObjects/Compatibility.php
diff --git a/include/OrmObjects/Compatibility.php b/include/OrmObjects/Compatibility.php
index 854393b6..2c3b44ab 100644
--- a/include/OrmObjects/Compatibility.php
+++ b/include/OrmObjects/Compatibility.php
@@ -47,6 +47,11 @@ class Compatibility extends BaseCompatibility
$notes .= str_replace("- ", "\n- ", parent::getNotes()) . "\n";
}
+ if ($this->getMobyId() != '-1') {
+ $notes .= "\n\n**External Links:**\n";
+ $notes .= "- <a href=\"https://www.mobygames.com/game/{$this->getMobyId()}\">MobyGames</a>\n";
+ }
+
$config = \HTMLPurifier_Config::createDefault();
$purifier = new \HTMLPurifier($config);
$parsedown = new \Parsedown();
@@ -59,4 +64,9 @@ class Compatibility extends BaseCompatibility
{
return $this->getGame()->getDataFiles();
}
+
+ public function getMobyId()
+ {
+ return $this->getGame()->getMobyId();
+ }
}
Commit: ce6bb0cacf351bdacf283e80ecd76c9971ccc089
https://github.com/scummvm/scummvm-web/commit/ce6bb0cacf351bdacf283e80ecd76c9971ccc089
Author: Thunderforge (wjherrmann at gmail.com)
Date: 2021-08-24T11:21:06-04:00
Commit Message:
Changing to use Markdown for Mobygames hyperlink
Changed paths:
include/OrmObjects/Compatibility.php
diff --git a/include/OrmObjects/Compatibility.php b/include/OrmObjects/Compatibility.php
index 2c3b44ab..a99468b2 100644
--- a/include/OrmObjects/Compatibility.php
+++ b/include/OrmObjects/Compatibility.php
@@ -49,7 +49,7 @@ class Compatibility extends BaseCompatibility
if ($this->getMobyId() != '-1') {
$notes .= "\n\n**External Links:**\n";
- $notes .= "- <a href=\"https://www.mobygames.com/game/{$this->getMobyId()}\">MobyGames</a>\n";
+ $notes .= "- [MobyGames](https://www.mobygames.com/game/{$this->getGame()->getMobyId()})\n";
}
$config = \HTMLPurifier_Config::createDefault();
@@ -64,9 +64,4 @@ class Compatibility extends BaseCompatibility
{
return $this->getGame()->getDataFiles();
}
-
- public function getMobyId()
- {
- return $this->getGame()->getMobyId();
- }
}
Commit: 23423a85990f84f2ab4312f7bd26c7d47b556efd
https://github.com/scummvm/scummvm-web/commit/23423a85990f84f2ab4312f7bd26c7d47b556efd
Author: Thunderforge (wjherrmann at gmail.com)
Date: 2021-08-24T11:21:06-04:00
Commit Message:
Fixing check for mobyId
Changed paths:
include/OrmObjects/Compatibility.php
diff --git a/include/OrmObjects/Compatibility.php b/include/OrmObjects/Compatibility.php
index a99468b2..cf6c6421 100644
--- a/include/OrmObjects/Compatibility.php
+++ b/include/OrmObjects/Compatibility.php
@@ -47,7 +47,7 @@ class Compatibility extends BaseCompatibility
$notes .= str_replace("- ", "\n- ", parent::getNotes()) . "\n";
}
- if ($this->getMobyId() != '-1') {
+ if ($this->getGame()->getMobyId() != '-1') {
$notes .= "\n\n**External Links:**\n";
$notes .= "- [MobyGames](https://www.mobygames.com/game/{$this->getGame()->getMobyId()})\n";
}
More information about the Scummvm-git-logs
mailing list