18 Commits
Author SHA1 Message Date
Le Philousophe f28c5198f4 WEB: Avoid returning null when there is no screenshot
Instead, return an empty screenshot object.
2025-08-24 12:32:47 +02:00
Le Philousophe 710b95a5f4 WEB: Better error handling
When PHP functions fail they often return false instead of the expected
object type.
CHeck for this value and fail properly.
2025-08-24 12:32:47 +02:00
Le Philousophe cc9fa80181 WEB: Add typing 2025-08-24 12:32:47 +02:00
Le Philousophe c743cc2187 WEB: Properly initialize the files array
Creating an array using the [] operator is allowed but not recommended.
Also check if it exists using isset.
2025-08-24 12:32:46 +02:00
Le Philousophe f639f357e5 WEB: Don't expect the current directory to be public_html 2025-08-09 17:39:22 +02:00
Thunderforge ecfba7047b WEB: Using full game id across the site (#288)
Previously, game ids were displayed in the form of `monkey`. Now they are displayed in the form of `scumm:monkey`.

Note that this changes some of the URLs for the screenshots and compatibility pages.
2023-04-26 10:09:06 +02:00
Thunderforge fdd8ec9857 Revert "WEB: Changing Compatibility ids to engine_id:game_id (#267)"
This reverts commit 777834c50b.
2022-11-10 18:44:59 -06:00
Thunderforge 777834c50b WEB: Changing Compatibility ids to engine_id:game_id (#267) 2022-11-10 18:23:28 -06:00
Thunderforge f89c624205 WEB: Adding a caption to random screenshots
The caption is a hyperlink that goes to the corresponding game page on https://www.scummvm.org/compatibility/ . This allows users to quickly look up compatibility info as well as see which platforms are supported.
2022-03-19 20:13:23 +01:00
Daniel ef9abdef7f WEB: Automatically determine filemask for screenshots (#212)
Add "variant_id" column to screenshots spreadsheet
2022-03-06 08:56:24 +00:00
Thunderforge b11ae66b40 WEB: Moving comment location to match new code 2022-03-05 22:08:07 -06:00
Thunderforge 66ea195315 WEB: Escaping special characters in the entire caption (#216)
Fixes an issue where the caption of `King's Quest I: Quest for the Crown (2.0F 1987-05-05 5.25"/3.5"/DOS/English)` was truncated to `King's Quest I: Quest for the Crown (2.0F 1987-05-05 5.25`.
2022-03-05 15:38:07 -06:00
Thunderforge 9f87c5277e WEB: Using htmlspecialchars() for caption replacement 2022-03-05 15:05:40 -06:00
Thunderforge 286aaa5739 IMAGES: Moving screenshots from company/game to engine/game (#207)
Includes a recalculation of how screenshot files are counted due to the removal of the `filemask` field.
2022-02-19 20:32:15 -06:00
Thunderforge e1fc730229 WEB: Fixing captions for games with quotes in name (#198)
`Spy Fox in "Dry Cereal"` was appearing as `Spy Fox in`. Replacing the quotes with `"` so it renders properly in HTML.
2022-01-14 00:33:43 -06:00
Mataniko f27fe3d0fd WEB: Rewrite the Screenshot model to use the database 2020-12-31 04:49:44 -05:00
Mataniko e415dad73a WEB: Lint files 2020-12-31 04:49:44 -05:00
Mataniko 9e43102294 WEB: Add all ORM Objects to ScummVM package 2020-12-31 04:49:44 -05:00