From 69fc1a7b8b5406160484cb657881ab9623ec0630 Mon Sep 17 00:00:00 2001 From: Dylan Lloyd Date: Sat, 26 Mar 2011 15:49:03 -0400 Subject: [PATCH] Concatenated comment js files --- includes/{ajax.js => comment_validation.js} | 0 index.php | 7 +++---- 2 files changed, 3 insertions(+), 4 deletions(-) rename includes/{ajax.js => comment_validation.js} (100%) diff --git a/includes/ajax.js b/includes/comment_validation.js similarity index 100% rename from includes/ajax.js rename to includes/comment_validation.js diff --git a/index.php b/index.php index a2c85ea..54b5bf2 100644 --- a/index.php +++ b/index.php @@ -76,11 +76,10 @@ abstract class cms { if (cms::determine_type() == "index") { $scripts = ""; $home_link = "http://validator.w3.org/unicorn/check?ucn_uri=dylansserver.com&ucn_task=conformance#"; - } else if ($this->determine_type() == 'note') { + } else if ($this->determine_type() == 'note' + && isset($_GET['comments'])) { $scripts = ""; - $scripts .= ""; - $scripts .= ""; - $scripts .= ""; + $scripts .= ""; } echo <<