diff --git a/config.php-dist b/config.php-dist index c66fb39f..299f753c 100644 --- a/config.php-dist +++ b/config.php-dist @@ -186,7 +186,7 @@ // Users may enable other user plugins from Preferences/Plugins but may not // disable plugins specified in this list. - define('SITE_TITLE', 'Tiny Tiny RSS'); + define('PAGE_TITLE','Tiny Tiny RSS'); // Change this value to customize the HTML page title define('CONFIG_VERSION', 26); diff --git a/include/functions.php b/include/functions.php index 00dc6a8f..2329a233 100644 --- a/include/functions.php +++ b/include/functions.php @@ -4085,11 +4085,4 @@ return $max_ts; } - function get_site_title() { - $original_title = "Tiny Tiny RSS"; - if (defined("SITE_TITLE")) { - return SITE_TITLE; - } - return $original_title; - } ?> diff --git a/index.php b/index.php index 4669a208..5a37c0e9 100644 --- a/index.php +++ b/index.php @@ -53,7 +53,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <?php echo get_site_title() ?> + <?php echo PAGE_TITLE ?> diff --git a/js/tt-rss.js b/js/tt-rss.js index 91aff8b6..1d6540db 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -179,9 +179,9 @@ function search() { function updateTitle() { var tmp = document.title; - if (tmp.indexOf(")") > 0) + if (tmp.indexOf('(')>0) { - tmp = tmp.substr(tmp.indexOf(")") + 1); + tmp = tmp.substr(0,tmp.lastIndexOf('(')); } if (global_unread > 0) { diff --git a/prefs.php b/prefs.php index 0d27a6e8..9c59d6c4 100644 --- a/prefs.php +++ b/prefs.php @@ -23,7 +23,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - <?php echo get_site_title() ?> : <?php echo __("Preferences") ?> + <?php echo PAGE_TITLE ?> : <?php echo __("Preferences") ?> diff --git a/register.php b/register.php index ce1b1ed5..73393032 100644 --- a/register.php +++ b/register.php @@ -27,7 +27,7 @@ print ''; print " ".htmlspecialchars(SELF_URL_PATH . "/register.php")." - <?php echo get_site_title() ?> registration slots + <?php echo PAGE_TITLE ?> registration slots ";