com web/php: Update the last modified CSS code to handle non-root working directories.: include/header.inc

From: Date: Wed, 20 Nov 2013 23:01:23 +0000
Subject: com web/php: Update the last modified CSS code to handle non-root working directories.: include/header.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-17097@lists.php.net to get a copy of this message
Commit: 4c9addfe675d42168d827b7887563db26a3522f7 Author: Adam Harvey <aharvey@php.net> Wed, 20 Nov 2013 15:01:23 -0800 Parents: d95d69eb18488dbc0552f0cceaa20f61824f563d Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=4c9addfe675d42168d827b7887563db26a3522f7 Log: Update the last modified CSS code to handle non-root working directories. Changed paths: M include/header.inc Diff: diff --git a/include/header.inc b/include/header.inc index b0eb50c..3c28a6d 100755 --- a/include/header.inc +++ b/include/header.inc @@ -9,7 +9,8 @@ if (isset($config['css'])) { $cssfiles += (array) $config['css']; } foreach($cssfiles as $filename) { - $CSS[$filename] = @filemtime("styles/$filename"); + $path = dirname(dirname(__FILE__)).'/styles/'.$filename; + $CSS[$filename] = @filemtime($path); }

« previous php.webmaster (#17097) next »