summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-12-05 16:34:07 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-12-05 16:34:07 +0000
commit5bb6927e18d4496395dea37cc5b14bb15cb42cad (patch)
treeb3142f8a63bb7defa33ddca8cb6dd23d0c306b22 /modules/system
parentc99dd5c2064df28932f13e5182676f281a699d48 (diff)
downloadbrdo-5bb6927e18d4496395dea37cc5b14bb15cb42cad.tar.gz
brdo-5bb6927e18d4496395dea37cc5b14bb15cb42cad.tar.bz2
#196410 report by daniel.soneira, patch by myself, tested by Freso: several fixes to url() generation and path aliasing, fixing path aliases for node paths and front page links in themes
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/page.tpl.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/system/page.tpl.php b/modules/system/page.tpl.php
index cbbd84a40..8a110e18a 100644
--- a/modules/system/page.tpl.php
+++ b/modules/system/page.tpl.php
@@ -32,6 +32,8 @@
* path, whether the user is logged in, and so on.
*
* Site identity:
+ * - $front_page: The URL of the front page. Use this instead of $base_path,
+ * when linking to the front page. This includes the language domain or prefix.
* - $logo: The path to the logo image, as defined in theme configuration.
* - $site_name: The name of the site, empty when display has been disabled
* in theme settings.
@@ -89,7 +91,7 @@
<div id="logo-title">
<?php if (!empty($logo)): ?>
- <a href="<?php print $base_path; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo">
+ <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo">
<img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" />
</a>
<?php endif; ?>
@@ -97,7 +99,7 @@
<div id="name-and-slogan">
<?php if (!empty($site_name)): ?>
<h1 id="site-name">
- <a href="<?php print $base_path ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
+ <a href="<?php print $front_page ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
</h1>
<?php endif; ?>