Commit 8a119dc9 authored by mmn's avatar mmn

We already throw exceptions for PEAR errors

parent b75e88f6
...@@ -98,7 +98,6 @@ class SchemaUpdater ...@@ -98,7 +98,6 @@ class SchemaUpdater
{ {
$checksums = array(); $checksums = array();
PEAR::pushErrorHandling(PEAR_ERROR_EXCEPTION);
try { try {
$sv = new Schema_version(); $sv = new Schema_version();
$sv->find(); $sv->find();
...@@ -111,7 +110,6 @@ class SchemaUpdater ...@@ -111,7 +110,6 @@ class SchemaUpdater
// no dice! // no dice!
common_log(LOG_DEBUG, "Possibly schema_version table doesn't exist yet."); common_log(LOG_DEBUG, "Possibly schema_version table doesn't exist yet.");
} }
PEAR::popErrorHandling();
return $checksums; return $checksums;
} }
...@@ -124,7 +122,6 @@ class SchemaUpdater ...@@ -124,7 +122,6 @@ class SchemaUpdater
*/ */
protected function saveChecksum($table, $checksum) protected function saveChecksum($table, $checksum)
{ {
PEAR::pushErrorHandling(PEAR_ERROR_EXCEPTION);
try { try {
$sv = new Schema_version(); $sv = new Schema_version();
$sv->table_name = $table; $sv->table_name = $table;
...@@ -139,7 +136,6 @@ class SchemaUpdater ...@@ -139,7 +136,6 @@ class SchemaUpdater
// no dice! // no dice!
common_log(LOG_DEBUG, "Possibly schema_version table doesn't exist yet."); common_log(LOG_DEBUG, "Possibly schema_version table doesn't exist yet.");
} }
PEAR::popErrorHandling();
$this->checksums[$table] = $checksum; $this->checksums[$table] = $checksum;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment