瀏覽代碼

Document (Window) Title: Update variable name to avoid conflict when paging is used.

Nate Jones 11 年之前
父節點
當前提交
62924d9cbf
共有 5 個文件被更改,包括 9 次插入9 次删除
  1. 2 2
      contact_address_edit.php
  2. 2 2
      contact_edit.php
  3. 2 2
      contact_note_edit.php
  4. 2 2
      contact_phone_edit.php
  5. 1 1
      contacts.php

+ 2 - 2
contact_address_edit.php

@@ -199,10 +199,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
 //show the header
 	require_once "resources/header.php";
 	if ($action == "update") {
-		$page["title"] = $text['title-contact_addresses-edit'];
+		$document['title'] = $text['title-contact_addresses-edit'];
 	}
 	else if ($action == "add") {
-		$page["title"] = $text['title-contact_addresses-add'];
+		$document['title'] = $text['title-contact_addresses-add'];
 	}
 
 //show the content

+ 2 - 2
contact_edit.php

@@ -199,10 +199,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
 //show the header
 	require_once "resources/header.php";
 	if ($action == "update") {
-		$page["title"] = $text['title-contact-edit'];
+		$document['title'] = $text['title-contact-edit'];
 	}
 	else if ($action == "add") {
-		$page["title"] = $text['title-contact-add'];
+		$document['title'] = $text['title-contact-add'];
 	}
 
 

+ 2 - 2
contact_note_edit.php

@@ -155,10 +155,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
 //show the header
 	require_once "resources/header.php";
 	if ($action == "update") {
-		$page["title"] = $text['title-contact_notes-edit'];
+		$document['title'] = $text['title-contact_notes-edit'];
 	}
 	else if ($action == "add") {
-		$page["title"] = $text['title-contact_notes-add'];
+		$document['title'] = $text['title-contact_notes-add'];
 	}
 
 //show the content

+ 2 - 2
contact_phone_edit.php

@@ -159,10 +159,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
 //show the header
 	require_once "resources/header.php";
 	if ($action == "update") {
-		$page["title"] = $text['title-contact_phones-edit'];
+		$document['title'] = $text['title-contact_phones-edit'];
 	}
 	else if ($action == "add") {
-		$page["title"] = $text['title-contact_phones-add'];
+		$document['title'] = $text['title-contact_phones-add'];
 	}
 
 //show the content

+ 1 - 1
contacts.php

@@ -41,7 +41,7 @@ else {
 	}
 
 require_once "resources/header.php";
-$page["title"] = $text['title-contacts'];
+$document['title'] = $text['title-contacts'];
 
 require_once "resources/paging.php";