mirror of
https://github.com/gtbu/Typesetter-5.3-p8.git
synced 2025-01-02 12:53:14 +01:00
update tool.php
removed @ -code
This commit is contained in:
parent
e3f959d4cd
commit
88a08b7ec9
3 changed files with 4 additions and 20 deletions
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue