update tool.php

removed @ -code
This commit is contained in:
gtbu 2024-12-10 12:49:44 +01:00
parent e3f959d4cd
commit 88a08b7ec9
3 changed files with 4 additions and 20 deletions

View file

@ -1,18 +0,0 @@
{
"name": "typesetter/typesetter",
"type": "project",
"description":"Open source CMS written in PHP focused on ease of use with true WYSIWYG editing and flat-file storage.",
"hoempage":"http://www.typesettercms.com/",
"require": {},
"require-dev": {
"phpcompatibility/php-compatibility": "^9.3",
"symfony/process": "<4",
"guzzlehttp/guzzle": "^6.5",
"phpunit/php-code-coverage": "<7",
"phpunit/phpunit": "<8 >=4"
},
"scripts": {
"post-install-cmd": "\"vendor/bin/phpcs\" --config-set installed_paths vendor/phpcompatibility/php-compatibility",
"post-update-cmd" : "\"vendor/bin/phpcs\" --config-set installed_paths vendor/phpcompatibility/php-compatibility"
}
}

View file

@ -118,8 +118,10 @@ namespace gp{
$modified = 0;
$content_length = 0;
foreach($files as $file){
$content_length += @filesize($file);
$modified = max($modified, @filemtime($file));
if (file_exists($file)) {
$content_length += filesize($file);}
if (file_exists($file) && is_readable($file)) {
$modified = max($modified, filemtime($file));}
}
return self::GenEtag($modified, $content_length);

View file