summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-03-11 07:44:58 +0300
committerAndrew Dolgov <[email protected]>2021-03-11 07:44:58 +0300
commit27ab16b6dc649fbda0ee329b42f1882623f9cba6 (patch)
treed2d4a6b81770e3e609ddc6ece0c6a507ea0b27ab /include
parent324aef9f6f80e7d1b34f1af2487ab03eebc66f47 (diff)
add Config::LOCAL_OVERRIDE_JS
Diffstat (limited to 'include')
-rw-r--r--include/functions.php2
-rwxr-xr-xinclude/login_form.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/functions.php b/include/functions.php
index 73d963803..e8f41d56a 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -420,6 +420,8 @@
$check = "themes.local/$theme";
if (file_exists($check)) return $check;
+
+ return "";
}
function theme_exists($theme) {
diff --git a/include/login_form.php b/include/login_form.php
index 9efe0e238..2e0eb077f 100755
--- a/include/login_form.php
+++ b/include/login_form.php
@@ -15,9 +15,7 @@
} ?>
- <?php if (theme_exists(Config::get(Config::LOCAL_OVERRIDE_STYLESHEET))) {
- echo stylesheet_tag(get_theme_path(Config::get(Config::LOCAL_OVERRIDE_STYLESHEET)));
- } ?>
+ <?= Config::get_override_links() ?>
<style type="text/css">
@media (prefers-color-scheme: dark) {