Browse Source

remove page title stuff for the time being

Andrew Dolgov 7 years ago
parent
commit
99534a3dde
5 changed files with 4 additions and 11 deletions
  1. 0 3
      config.php-dist
  2. 1 1
      index.php
  3. 1 5
      js/tt-rss.js
  4. 1 1
      prefs.php
  5. 1 1
      register.php

+ 0 - 3
config.php-dist

@@ -186,9 +186,6 @@
 	// Users may enable other user plugins from Preferences/Plugins but may not
 	// disable plugins specified in this list.
 
-    define('PAGE_TITLE','Tiny Tiny RSS');
-    // Change this value to customize the HTML page title
-
 	define('CONFIG_VERSION', 26);
 	// Expected config version. Please update this option in config.php
 	// if necessary (after migrating all new options from this file).

+ 1 - 1
index.php

@@ -53,7 +53,7 @@
 	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html>
 <head>
-    <title><?php echo PAGE_TITLE ?></title>
+	<title>Tiny Tiny RSS</title>
 
 	<?php echo stylesheet_tag("lib/dijit/themes/claro/claro.css"); ?>
 	<?php echo stylesheet_tag("tt-rss.css"); ?>

+ 1 - 5
js/tt-rss.js

@@ -178,11 +178,7 @@ function search() {
 }
 
 function updateTitle() {
-	var tmp = document.title; 
-    if (tmp.indexOf('(')>0)
-    {
-       tmp = tmp.substr(0,tmp.lastIndexOf('('));
-    }
+	var tmp = "Tiny Tiny RSS";
 
 	if (global_unread > 0) {
 		tmp = "(" + global_unread + ") " + tmp;

+ 1 - 1
prefs.php

@@ -23,7 +23,7 @@
 	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html>
 <head>
-	<title><?php echo PAGE_TITLE ?> : <?php echo __("Preferences") ?></title>
+	<title>Tiny Tiny RSS : <?php echo __("Preferences") ?></title>
 
 	<?php echo stylesheet_tag("lib/dijit/themes/claro/claro.css"); ?>
 	<?php echo stylesheet_tag("tt-rss.css"); ?>

+ 1 - 1
register.php

@@ -27,7 +27,7 @@
 		print '<?xml version="1.0" encoding="utf-8"?>';
 		print "<feed xmlns=\"http://www.w3.org/2005/Atom\">
 			<id>".htmlspecialchars(SELF_URL_PATH . "/register.php")."</id>
-			<title><?php echo PAGE_TITLE ?> registration slots</title>
+			<title>Tiny Tiny RSS registration slots</title>
 			<link rel=\"self\" href=\"".htmlspecialchars(SELF_URL_PATH . "/register.php?format=feed")."\"/>
 			<link rel=\"alternate\" href=\"".htmlspecialchars(SELF_URL_PATH)."\"/>";