com web/php: Quiet warning on pages that don't specify custom css.: include/header.inc
| From: | Paul Dragoonis | Date: | Wed, 20 Nov 2013 22:26:01 +0000 |
| Subject: | com web/php: Quiet warning on pages that don't specify custom css.: include/header.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-22528@lists.php.net to get a copy of this message | ||
Commit: 56ab9a15662fc08c6b7891b7d183e0fbdf42e5f4
Author: Adam Harvey <aharvey@php.net> Wed, 20 Nov 2013 14:26:01 -0800
Parents: 6f53d84ca61bdd817d3f05d138120cc65eb964aa
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=56ab9a15662fc08c6b7891b7d183e0fbdf42e5f4
Log:
Quiet warning on pages that don't specify custom css.
Changed paths:
M include/header.inc
Diff:
diff --git a/include/header.inc b/include/header.inc
index 7fab9fc..b04b3df 100755
--- a/include/header.inc
+++ b/include/header.inc
@@ -4,7 +4,10 @@ header("Expires: Thu, 19 Nov 1981 08:52:00 GMT");
header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
header("Pragma: no-cache");
-$cssfiles = array(200 => "theme-base.css",
"theme-medium.css")+(array)$config["css"];
+$cssfiles = array(200 => "theme-base.css", "theme-medium.css");
+if (isset($config['css'])) {
+ $cssfiles += (array) $config['css'];
+}
foreach($cssfiles as $filename) {
$CSS[$filename] = @filemtime("styles/$filename");
}