Le Philousophe
93d3aa56a1
WEB: Handle null cases
...
Sometimes variables may be null. Handle the cases when passing to
functions expecting something non-null.
2025-08-24 12:32:47 +02:00
Le Philousophe
9a59454525
BUILD: Increase PHPStan level
...
The AltoRouter::match function has a bad signature: fix it using a stub.
2025-08-24 12:32:47 +02:00
Le Philousophe
e2f72c8d8b
WEB: Modify all extra attributes at once
...
This makes PHPStan happy (because the array type is expected to be
either empty or full).
2025-08-24 12:32:47 +02:00
Le Philousophe
a1afb8a64d
WEB: Handle cases when WebLink are mixed with Files
...
Also make hasOldVersion static as it doesn't need access to the
instance.
2025-08-24 12:32:47 +02:00
Le Philousophe
7b0a2033de
WEB: Gracefully handle cases when there are no extension in files
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
51ce727edd
WEB: Simplify subsections construction
...
This will ease 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
d8ff9c3c75
WEB: Remove useless check
...
The function is expected to take an array or a string.
Array is checked above so what remains is a string.
Any other use is an error that should be reported (strlen will fail).
2025-08-24 12:32:46 +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
261cca2dc3
WEB: Cleanup logic of exception handler
...
Also use isset to check if the Exception has been set.
2025-08-24 12:32:46 +02:00
Le Philousophe
649ade2977
WEB: Make index a void function
...
It's used with Smarty::display which is void so there is never anything
to return and the return value was never checked.
Propagate this change everywhere.
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
8c2e6ab345
WEB: Remove obsolete file
2025-08-24 12:32:46 +02:00
Le Philousophe
82e06a50a6
WEB: Fix relative path
...
Current working directory must not be relied on.
2025-08-12 11:53:51 +02:00
Le Philousophe
303573e590
BUILD: Fix phpstan error
...
The connection object (ConnectionInterface) doesn't officially expose
the isCommittable function.
Try to commit and, if it fails, rollback.
2025-08-09 17:39:22 +02:00
Le Philousophe
ee085bcdba
WEB: Rework links localization
...
The new algorithm is more robust and avoids adding the localization path
fragment to unrelated ScummVM websites.
It also fixes URLs to keep the user on the same website it visited (www
vs without www).
2025-08-09 17:39:22 +02:00
Le Philousophe
63afb13362
WEB: Define more URL constants for the website
...
Also make the base URL cleaner
2025-08-09 17:39:22 +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
558eab0e55
BUILD: Improve error handling when importing data
...
Try to insert again when it failed without the faulty elements.
2025-06-21 11:17:40 +02:00
Lothar Serra Mari
f3c29b7eea
WEB: Bump to 2.9.1
2025-05-25 15:43:08 +02:00
Le Philousophe
85bbf617bb
WEB: Don't make the cache database depend on the hostname
...
This avoids having two caches when accessing the website with or without
a www and this is also more robust.
Make use of the DEV_SERVER constant and allow to enable it by setting an
environment variable.
2024-12-24 13:31:11 +01:00
Lothar Serra Mari
1c99f901f9
WEB: Bump to 2.9.0
2024-12-22 20:20:31 +01: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
2ec02d4627
BUILD: Make promises run as soon as they can
...
Instead of waiting to download everything and process the results,
process each result when it comes.
2024-09-21 16:19:48 +02:00
Le Philousophe
2d41648004
BUILD: Use a transaction to feed the database
...
This avoids Propel to issue a transaction at each save which causes
SQLite to sync to disk after every single insertion.
This speeds up the process dramatically on slow drives.
2024-09-21 16:15:32 +02:00
Le Philousophe
047655fd69
WEB: Set the page description to the game support level
2024-09-14 13:27:42 +02:00
Le Philousophe
14a84a1bf6
WEB: Create a dedicated string from home and news archive pages
2024-09-14 13:27:42 +02:00
Le Philousophe
832f769fe3
WEB: Add a description and a descriptive title for OpenGraph
2024-09-14 13:27:42 +02:00
Le Philousophe
a08bd53973
WEB: Remove leading / in page URLs
2024-09-14 13:27:42 +02:00
Le Philousophe
ce2955f0db
WEB: Remove unused SimpleModel class
2024-09-14 13:14:49 +02:00
Le Philousophe
641ff7939d
WEB: Remove useless baseUrl argument
2024-09-14 13:14:49 +02:00
Le Philousophe
ae90ba23db
WEB: Remove useless getId function
...
It always returned an uninitialized id.
2024-09-14 13:14:49 +02:00
Le Philousophe
7cd3ff2331
WEB: Various PHPStan fixes
...
These fixes are only for correctness.
2024-09-14 13:14:49 +02:00
Le Philousophe
7a6a3e7edd
WEB: Upgrade for recent PHP and future Smarty v5
2024-09-14 13:14:49 +02:00
Lothar Serra Mari
c5ec789548
WEB: Bump internal version number to 2.8.1
2024-03-31 20:43:28 +02:00
Eugene Sandulenko
895c9f6399
WEB: Bump released version to 2.8.0
2023-12-30 17:01:15 +01:00
Thunderforge
3b44b37116
WEB: Removing GOG affiliate link ( #322 )
...
* WEB: Removing GOG affiliate link
Per Discord discussion, the legacy affiliate program is ending.
* WEB: Removing GOG icon from sidebar
Since we no longer have an affiliate program, I don't think there's any reason to link directly to them.
2023-12-06 20:49:16 +01:00
Thierry Crozat
7955316fa2
WEB: Fix Zoom-platform links in compatibility page
2023-08-25 08:01:34 +01:00
Thunderforge
a33c10e3a9
WEB: Adding ZOOM Platform link to Compatibility pages
...
Includes affiliate link
2023-08-25 08:18:11 +02:00
Lothar Serra Mari
0f81ec4b62
WEB: Fix version constant on 2.7.1
2023-07-31 22:05:30 +02:00
Thunderforge
91f46cc16c
WEB: Changing "recommend" to "endorse"
...
I think this more accurately describes our stance.
2023-06-07 10:40:30 -05:00
Thunderforge
3807a83203
WEB: Using simple replace for support description ( #298 )
...
Fixes issue #13720 .
The old system used a placeholder and was overbroad in its regex replace for that placeholder, which garbled links. Since we don't need a special regex for a placeholder, this does the job in a simpler and more reliable way.
2023-05-26 00:22:11 -05:00
Thunderforge
f25dbcc8fa
WEB: Removing unused imports
2023-05-24 18:42:56 -05:00
Thunderforge
e31bcc340c
WEB: Replacing : in cache keys
...
Colon is not a permitted character. See https://github.com/PHPSocialNetwork/phpfastcache/wiki/%5BV6˖%5D-Unsupported-characters-in-key-identifiers
2023-04-26 12:35:37 -05: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
ccbdca28fa
WEB: Redirecting to compatibility page when no game id exists ( #287 )
...
Part of the migration to using full game ids
2023-04-24 16:05:52 -05:00