Le Philousophe
2eb466013d
WEB: Update PHP and JS packages
2026-05-08 22:24:12 +02:00
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
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
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
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
ce2955f0db
WEB: Remove unused SimpleModel class
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
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
f7f9221415
WEB: Reducing demo group threshold from 15 to 10
...
This allows Adventure Soft demos to show up.
2022-06-19 17:33:09 -05: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
12225a314b
DATA: Restoring notes for link groups
2022-02-06 17:06:16 -06:00
Thunderforge
264624f0f3
DATA: Removing constants for Android & Ubuntu versions ( #200 )
...
Now that we have the "version" column on the spreadsheet, the constants are unnecessary. This was a holdover from back when versions were determined by the file names and these URLs didn't have them.
2022-01-17 18:10:13 -06:00
Thunderforge
e0c85807b6
DATA: Restoring extra info on downloads page
...
This involved renaming the spreadsheet column from "Description" to "Notes"
2022-01-17 20:55:39 +01:00
Thunderforge
589dee82af
WEB: Removing unused CATEGORY_COLUMN constant
2022-01-12 20:10:09 -06:00
Thunderforge
1fdd6fd18f
WEB: Changing category from "tools" to "scummvm-tools"
...
This allows for simpler URL generation
2022-01-11 22:11:30 -06:00
Thunderforge
732df0df4a
WEB: Ensuring daily category takes priority
...
Daily builds should always be in the "Daily" category, regardless of which they are.
2022-01-11 22:04:56 -06:00
Thunderforge
5e82b7570c
WEB: Simplifying how source URLs are constructed
2022-01-11 21:32:35 -06:00
Thunderforge
9795706cba
WEB: Renaming recommended download variables
2022-01-11 19:50:23 -06:00
Thunderforge
30fd00126b
WEB: Recommended download link
...
When I did refactoring for FileUtils, it seems it resulted in a bad copy/paste.
2022-01-11 13:09:44 -06:00
Thunderforge
453e74263b
WEB: Adding file size and extension to recommended downloads ( #191 )
...
* WEB: Refactor reading files into FileUtils
Refactoring code in `include/Objects/File` into `FileUtils`. This not only makes the code much cleaner, but also allows it to be used in other places of the app, such as the `DownloadsModel`.
* WEB: Adding file size and extension to recommended downloads
2022-01-10 15:39:01 -06:00
Thunderforge
d7162fa558
WEB: Removing Win32 label in extra info ( #189 )
...
Now that we have .exe files for 64-bit Windows, it's no longer accurate to say `Win32 .exe`. This was also unique behavior for Windows; we did not indicate bitness in this way for any other operating system.
2022-01-09 18:39:34 -06:00
masbaehr
c5a6691368
WEB: Update DownloadsModel.php ( #187 )
...
fix wrong url for macos. download did not work because link is like this:
https://downloads.scummvm.orgfrs/scummvm/2.5.1/scummvm-2.5.1-macosx.dmg
2022-01-09 17:34:17 -06:00
Eugene Sandulenko
39398a2670
WEB: Put tools to the current category regardless of their version
2022-01-02 19:04:24 +01:00
Thunderforge
5b5564c8d1
WEB: Removing version sort from DownloadQuery
...
We now sort versions at a later point, and this avoids the issue of the Daily section appearing before the release section.
2021-11-27 11:57:00 -06:00
Thunderforge
359d84ec05
WEB: Removing code related to Extras
...
Extras have been removed from the `scummvm_downloads` tab of the data spreadsheet. Removing related code and localization data related to it.
2021-11-25 14:55:35 +01:00
Thunderforge
a4f0e15a6f
WEB: Fixing lint errors
2021-11-21 20:00:54 -06:00
Thunderforge
2ceb90ef78
WEB: Replacing is_null with !==
...
Codacy recommends this way
2021-11-21 20:00:17 -06:00
Thunderforge
0de6a475d3
WEB: Fixing when the recommended download link is an external URL ( #182 )
2021-11-21 19:52:16 -06:00
Thunderforge
ac98bb341e
WEB: Fixing when there is no download link for the user agent ( #181 )
2021-11-21 19:44:32 -06:00
Thunderforge
c95bf5715e
WEB: Sort downloads by version ( #177 )
2021-11-18 17:06:46 -06:00
Thunderforge
60e02dbf54
DATA: Changing downloads table to use version column ( #174 )
...
In order to simplify the process of updating version downloads, [downloads spreadsheet table](https://docs.google.com/spreadsheets/d/1QzwFleEKXOsE59cYMOcQB7C2f0Np48uAQOCG8kicX_s/edit#gid=1057392663 ) now includes a `version` column and the `url` field is much simpler. In order to update a new version, simply change the value in the `version` field.
Further improvements can be made, but for now this is an improvement that keeps parity with the previous code.
2021-11-18 16:04:20 -06:00
SupSuper
0eeb279c31
WEB: Combine daily downloads into a single list
2021-09-20 07:31:07 +01:00
mataniko
43e117fdf2
WEB: Add Director demos page, model and template
2021-08-23 22:17:58 -04:00
SupSuper
3099c653a2
WEB: Update news buildbot links
2021-06-11 17:44:42 +01: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
ef20da2ede
WEB: Fix PHP array key warnings
2021-04-02 22:01:06 -04:00
Mataniko
b20d4c5fb1
WEB: Fix compat version queries
2021-01-09 13:15:55 -05:00
Mataniko
91a6d8eccc
WEB: Remove additional unused FAQ references
2021-01-05 16:19:26 -05: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