Bug 578047 - Reduce EventLog

Change-Id: Ibedaa51872b55082a4e0ffcfe3bf4ad425b487ed
Signed-off-by: Kit Lo <kitlo@us.ibm.com>
diff --git a/classes/file/file.class.php b/classes/file/file.class.php
index b882f40..9d6e322 100755
--- a/classes/file/file.class.php
+++ b/classes/file/file.class.php
@@ -49,7 +49,7 @@
 				$where = " WHERE file_id = " . sqlSanitize($this->file_id, $dbh);
 			}
 			
-			$Event = new EventLog("files", "file_id", $this->file_id, $sql);
+			# $Event = new EventLog("files", "file_id", $this->file_id, $sql);
 			
 			$sql .= " files 
 						SET file_id 	= " . sqlSanitize($this->file_id, $dbh) . ",
@@ -61,10 +61,10 @@
 			if(mysqli_query($dbh, $sql)) {
 				if($this->file_id == 0) {
 					$this->file_id = mysqli_insert_id($dbh);
-					$Event->key_value = $this->file_id;
+					# $Event->key_value = $this->file_id;
 				}
 				$rValue = true;
-				$Event->add();
+				# $Event->add();
 			}
 			else {
 				echo $sql . "\n";
diff --git a/classes/string/string.class.php b/classes/string/string.class.php
index 7e4c0ab..475a95c 100755
--- a/classes/string/string.class.php
+++ b/classes/string/string.class.php
@@ -39,8 +39,8 @@
 					$this->string_id = $String->string_id;
 					$sql = "UPDATE";
 					$where = " WHERE string_id = " . sqlSanitize($this->string_id, $dbh);
-					$Event = new EventLog("strings", "string_id:old_value", $this->string_id . ":" . $String->value, "UPDATE");
-					$Event->add();
+					# $Event = new EventLog("strings", "string_id:old_value", $this->string_id . ":" . $String->value, "UPDATE");
+					# $Event->add();
 				}
 
                 # Bug 272661 - Pseudo translations change " to ', breaking link texts
@@ -90,8 +90,8 @@
 					$this->string_id = $String->string_id;
 					$sql = "UPDATE";
 					$where = " WHERE string_id = " . sqlSanitize($this->string_id, $dbh);
-					$Event = new EventLog("strings", "string_id:old_value", $this->string_id . ":" . $String->value, "UPDATE");
-					$Event->add();
+					# $Event = new EventLog("strings", "string_id:old_value", $this->string_id . ":" . $String->value, "UPDATE");
+					# $Event->add();
 				}
 
 				$sql .= " strings 
@@ -263,8 +263,8 @@
 
 			$rValue = mysqli_query($dbh, $sql);
 			
-			$Event = new EventLog("strings", "string_id", $_string_id, "DEACTIVATE");
-			$Event->add();
+			# $Event = new EventLog("strings", "string_id", $_string_id, "DEACTIVATE");
+			# $Event->add();
 		}
 		return $rValue;
 	}