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-22526@lists.php.net to get a copy of this message
Commit: e7fe6da6cc3cd1ea9cb312a974d1fc010e09ffca Author: Adam Harvey <aharvey@php.net> Wed, 20 Nov 2013 15:01:23 -0800 Parents: 6f12c442ac5cda7863e747b33fc7af018fb39000 Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=e7fe6da6cc3cd1ea9cb312a974d1fc010e09ffca 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 (#22526) next »