32 Commits

Author SHA1 Message Date
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 d7c3bd0528 WEB: Various small fixes
These are either cosmetic or spotted by PHPStan
2025-08-24 12:32:47 +02:00
Le Philousophe 3d37c952a8 WEB: Use null instead of false when no data is available
This allows to use the ? type prefix.
2025-08-24 12:32:46 +02:00
Le Philousophe 1c9380ef3e JANITORIAL: Fix code style
This should not have any behavioral changes
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
Le Philousophe 24f1fa4717 WEB: Cache screenshots listings
And make sure there is no cache collision between categories and
subcategories.
2024-11-09 19:03:50 +01:00
Le Philousophe 8540d5da28 WEB: Allow listing of screenshots for "other" company id
The "other" company id is an aggregation of all games whose company has
edited one game.
2024-11-09 19:03:50 +01:00
Le Philousophe 7cd3ff2331 WEB: Various PHPStan fixes
These fixes are only for correctness.
2024-09-14 13:14:49 +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 3fafbaa583 IMAGES: Only count full screenshots (#213)
Fixes [#13340](https://bugs.scummvm.org/ticket/13340).

When getting a count of the number of screenshots for a game or series, only count the full screenshots. This prevents doubling the count because both the small and large versions are included.
2022-03-05 13:49:51 -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 589dee82af WEB: Removing unused CATEGORY_COLUMN constant 2022-01-12 20:10:09 -06:00
Mataniko e683a6da6f WEB: Fix screenshot pages for various games
This fixes bug #12356 where games with only one screenshot type would not work.
2021-04-02 22:48:10 -04:00
Mataniko 6589516321 WEB: Restore number of shots in screenshots page 2020-12-31 04:49:44 -05:00
Mataniko f27fe3d0fd WEB: Rewrite the Screenshot model to use the database 2020-12-31 04:49:44 -05:00
Mataniko f1a969bdbd WEB: Use ORM objects for Screenshots 2020-12-31 04:49:44 -05:00
Mataniko 41f028310c WEB: Use symfony/yaml and predis if redis is not available
This removes the hard requirements on pecl modules making development easier.
2020-10-21 23:08:08 -04:00
Mataniko 08fffe6dd0 WEB: Load localized data in models 2020-10-10 01:34:06 -04:00
Mataniko db6cb726e8 WEB: Add a new SimpleModel class
The SimpleModel is used to to read simple data models from YAML that require no further processing

This allows us to delete several models that re-use the same code.
2020-09-27 22:08:07 -04:00
Mataniko 08ea2cfcde WEB: Lint and static analysis cleanup 2020-09-27 22:08:07 -04:00
Mataniko c0eb021126 WEB: Add caching to all models 2020-09-27 22:08:07 -04:00
Mataniko 4471b291a1 WEB: Convert all models to not be static objects
This is a first step towards moving to a dependency injection model.
2020-09-27 22:08:07 -04:00
Mataniko 33d8a28f4a WEB: Sort screenshots page 2020-09-27 22:08:07 -04:00
Mataniko f8ca4c046a WEB: Update screenshots data & model 2020-09-27 22:08:07 -04:00
Thunderforge 73958c69d5 BUILD: Standardizing the variable names for parsing data
Fixes the following Codacy issues:

* Avoid variables with short names like `$a`. Configured minimum length is 3.
* Avoid unused local variables such as '$key'.
2020-04-03 13:47:28 +02:00
Matan Bareket 1e7815ec2e WEB: Fix namespace reference to ErrorException 2019-01-22 19:49:58 -05:00
Matan Bareket 85328f2997 WEB: Use PSR-4 autoloading 2019-01-22 19:49:58 -05:00
Matan Bareket cfbeebb8dc WEB: Add namespaces to all PHP files 2019-01-22 19:49:58 -05:00
Matan Bareket 851bb41bb7 WEB: Auto-fix to PSR-2 standard 2019-01-22 19:49:58 -05:00
Fredrik Wendel 250bc28b3e Make ScreenshotsModel be able to handle just a single group, or a group with just one game.
svn path=/web/trunk/; revision=40946
2009-05-27 17:45:47 +00:00
Eugene Sandulenko d429c48de0 Website rewrite from Fredrik Wendel
svn path=/web/trunk/; revision=40814
2009-05-23 18:45:30 +00:00