summaryrefslogtreecommitdiff
path: root/lib/theme.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-02-11 16:42:58 -0500
committerEvan Prodromou <evan@status.net>2010-02-11 16:42:58 -0500
commita6ab9c4a3e820b9d293075b1fec8b5eb05df87e9 (patch)
tree8145da2b4c75ad9c3f43caf139a4734ebea6e7ce /lib/theme.php
parent1773d12a24d2720cdb6c1b517999cac1f708b355 (diff)
Themes can be served from an SSL server
Diffstat (limited to 'lib/theme.php')
-rw-r--r--lib/theme.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/theme.php b/lib/theme.php
index 020ce1ac4..bed631d9c 100644
--- a/lib/theme.php
+++ b/lib/theme.php
@@ -110,9 +110,9 @@ class Theme
$server = common_config('site', 'server');
}
- // XXX: protocol
+ $protocol = common_config('theme', 'ssl') ? 'https' : 'http';
- $this->path = 'http://'.$server.$path.$name;
+ $this->path = $protocol . '://'.$server.$path.$name;
}
}