summaryrefslogtreecommitdiff
path: root/themes/fab
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-04-25 10:26:33 +0000
committerfisharebest <fisharebest@gmail.com>2010-04-25 10:26:33 +0000
commita7718eabc8a0da6e6691c4275124465107225c7f (patch)
tree334a367168e48bba3942444566ace2f938ef3684 /themes/fab
parent2c8bec701145f7a21edaf9ab3507238e4cebef49 (diff)
downloadwebtrees-a7718eabc8a0da6e6691c4275124465107225c7f.tar.gz
webtrees-a7718eabc8a0da6e6691c4275124465107225c7f.tar.bz2
webtrees-a7718eabc8a0da6e6691c4275124465107225c7f.zip
Fetch site settings when needed, rather than making global
Diffstat (limited to 'themes/fab')
-rw-r--r--themes/fab/header.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/fab/header.php b/themes/fab/header.php
index 1e9a813466..d4cae40aec 100644
--- a/themes/fab/header.php
+++ b/themes/fab/header.php
@@ -124,8 +124,8 @@ if ($view!='simple') {
echo ' | <li><a href="javascript:;" onclick="window.open(\'edit_changes.php\',\'_blank\',\'width=600,height=500,resizable=1,scrollbars=1\'); return false;" style="color:red;">', i18n::translate('Pending Changes'), '</a></li>';
}
} else {
- global $LOGIN_URL;
- if (WT_SCRIPT_NAME==basename($LOGIN_URL)) {
+ $LOGIN_URL=get_site_setting('LOGIN_URL');
+ if (WT_SCRIPT_NAME==$LOGIN_URL) {
echo '<li><a href="', $LOGIN_URL, '" class="link">', i18n::translate('Login'), '</a></li>';
} else {
$QUERY_STRING = normalize_query_string($QUERY_STRING.'&amp;logout=');