[web-php] redesign-downloads-page-prototype: Fixed filename access for filemtime/stat

From: Date: Tue, 12 Aug 2025 10:37:33 +0000
Subject: [web-php] redesign-downloads-page-prototype: Fixed filename access for filemtime/stat
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-33088@lists.php.net to get a copy of this message
Author: Derick Rethans (derickr) Date: 2025-08-12T11:31:41+01:00 Commit: https://github.com/php/web-php/commit/a40673b6f731965897706f61cbc022965828d217 Raw diff: https://github.com/php/web-php/commit/a40673b6f731965897706f61cbc022965828d217.diff Fixed filename access for filemtime/stat Changed paths: M include/header.inc Diff: diff --git a/include/header.inc b/include/header.inc index b339b625d9..3da277344c 100644 --- a/include/header.inc +++ b/include/header.inc @@ -26,7 +26,7 @@ foreach($css_files as $filename) { $JS = []; if (isset($config["js_files"])) { foreach($config['js_files'] as $filename) { - $path = dirname(__DIR__) . $filename; + $path = dirname(__DIR__) . '/' . $filename; $JS[$filename] = @filemtime($path); } }

« previous php.webmaster (#33088) next »