From 77f8034d616e5d8436c4c14e273c3f4448f0bb9c Mon Sep 17 00:00:00 2001 From: Max Pozdeev Date: Sat, 6 Feb 2010 18:08:45 +0300 Subject: [PATCH] - bugfix: bug in previous fix :) --- src/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.php b/src/index.php index 3e5ce76..e88c756 100644 --- a/src/index.php +++ b/src/index.php @@ -52,8 +52,8 @@ function get_mttinfo($v) $_mttinfo['template_url'] = get_mttinfo('url'). 'themes/'. Config::get('template') . '/'; return $_mttinfo['template_url']; case 'url': - $_mttinfo['siteurl'] = 'http://'.$_SERVER['HTTP_HOST'] .($_SERVER['SERVER_PORT'] != 80 ? ':'.$_SERVER['SERVER_PORT'] : ''). url_dir($_SERVER['REQUEST_URI']); - return $_mttinfo['siteurl']; + $_mttinfo['url'] = 'http://'.$_SERVER['HTTP_HOST'] .($_SERVER['SERVER_PORT'] != 80 ? ':'.$_SERVER['SERVER_PORT'] : ''). url_dir($_SERVER['REQUEST_URI']); + return $_mttinfo['url']; case 'title': $_mttinfo['title'] = (Config::get('title') != '') ? htmlarray(Config::get('title')) : $lang->get('My Tiny Todolist'); return $_mttinfo['title'];