From e3d9eabd0caf14f039cf81d649d60c3671f2432d Mon Sep 17 00:00:00 2001 From: spaghetti Date: Tue, 7 Jun 2016 22:30:13 -0400 Subject: [PATCH] Migrate to SITE_DOMAIN constant from (NON)SSL_SITE_URL --- design/privateheader.php | 4 ++-- design/publicheader.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/design/privateheader.php b/design/privateheader.php index b99fdab..b7e9890 100755 --- a/design/privateheader.php +++ b/design/privateheader.php @@ -1,7 +1,7 @@ @@ -75,7 +75,7 @@ if ($Mobile) { ?> $StyleURLInfo = parse_url(G::$LoggedUser['StyleURL']); if (substr(G::$LoggedUser['StyleURL'], -4) == '.css' && empty($StyleURLInfo['query']) && empty($StyleURLInfo['fragment']) - && in_array($StyleURLInfo['host'], array(NONSSL_SITE_URL, SSL_SITE_URL)) + && ($StyleURLInfo['host'] == SITE_DOMAIN) && file_exists(SERVER_ROOT.$StyleURLInfo['path'])) { $StyleURL = G::$LoggedUser['StyleURL'].'?v='.filemtime(SERVER_ROOT.$StyleURLInfo['path']); } else { diff --git a/design/publicheader.php b/design/publicheader.php index fed0c73..742089d 100755 --- a/design/publicheader.php +++ b/design/publicheader.php @@ -1,5 +1,5 @@