summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_rrd_graph.php
diff options
context:
space:
mode:
authorDarren Embry <dse@webonastick.com>2012-03-23 14:00:24 -0400
committerDarren Embry <dse@webonastick.com>2012-03-23 14:00:24 -0400
commit31d6f24b12e95d0a49c312891cb0f3cf867f159d (patch)
treed52b5e9ba69d82c752292a74c9368f3e58e1e284 /usr/local/www/status_rrd_graph.php
parentce49a7c9f2781bda704e4e561026b5e445ab1fcb (diff)
downloadpfsense-31d6f24b12e95d0a49c312891cb0f3cf867f159d.zip
pfsense-31d6f24b12e95d0a49c312891cb0f3cf867f159d.tar.gz
pull jquery-ui.custom.css from themes/THEME if it exists there
otherwise pull /javascript/jquery/jquery-ui.custom.css, which contains defaults.
Diffstat (limited to 'usr/local/www/status_rrd_graph.php')
-rwxr-xr-xusr/local/www/status_rrd_graph.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/www/status_rrd_graph.php b/usr/local/www/status_rrd_graph.php
index 72a2a7b..0e6e0cf 100755
--- a/usr/local/www/status_rrd_graph.php
+++ b/usr/local/www/status_rrd_graph.php
@@ -249,7 +249,11 @@ include("head.inc");
<?php if ($curcat === "custom") { ?>
<link rel="stylesheet" type="text/css" href="/javascript/jquery-ui-timepicker-addon/css/jquery-ui-timepicker-addon.css" />
- <link rel="stylesheet" type="text/css" href="/javascript/jquery/jquery-ui.custom.css" />
+ <?php if (file_exists("{$g['www_path']}/themes/{$g['theme']}/jquery-ui.custom.css")) { ?>
+ <link rel="stylesheet" type="text/css" href="/themes/<?= $g['theme'] ?>/jquery-ui.custom.css" />
+ <?php } else { ?>
+ <link rel="stylesheet" type="text/css" href="/javascript/jquery/jquery-ui.custom.css" />
+ <?php } ?>
<script type="text/javascript" src="/javascript/jquery-ui-timepicker-addon/js/jquery-ui-timepicker-addon.js"></script>
<script type="text/javascript">
jQuery(function ($) {
OpenPOWER on IntegriCloud