[geeklog-cvs] geeklog: Set {lang_attribute} only when in multi-language mode
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Oct 18 14:28:53 EDT 2008
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/bffd0ddf1fe6
changeset: 6457:bffd0ddf1fe6
user: Dirk Haun <dirk at haun-online.de>
date: Sat Oct 18 19:27:24 2008 +0200
description:
Set {lang_attribute} only when in multi-language mode
diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
public_html/article.php | 8 ++++++--
diffs (18 lines):
diff -r e564c19446e3 -r bffd0ddf1fe6 public_html/article.php
--- a/public_html/article.php Sat Oct 18 19:22:09 2008 +0200
+++ b/public_html/article.php Sat Oct 18 19:27:24 2008 +0200
@@ -227,8 +227,12 @@
}
}
}
- $story_template->set_var( 'lang_id', $langId );
- $story_template->set_var( 'lang_attribute', $langAttr );
+ $story_template->set_var('lang_id', $langId);
+ if (!empty($_CONF['languages']) && !empty($_CONF['language_files'])) {
+ $story_template->set_var('lang_attribute', $langAttr);
+ } else {
+ $story_template->set_var('lang_attribute', '');
+ }
$story_template->parse ('output', 'article');
$display = $story_template->finish ($story_template->get_var('output'));
More information about the geeklog-cvs
mailing list