summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-05-31 21:51:00 -0700
committerBharat Mediratta <bharat@menalto.com>2009-05-31 21:51:00 -0700
commit55b23a4e86e8ac35437d197b6d09cb3e67360eaa (patch)
tree469f5a061a996517a616f5845d3db36b5dab152c
parent8ebd941c81070b1454ff5e4ab97b4f3e14cbf345 (diff)
parentc96b81db6521c8d2b0f3601557011661b0a2d9b8 (diff)
Merge branch 'master' of git://github.com/gallery/gallery3
-rw-r--r--index.php2
-rw-r--r--installer/installer.php3
2 files changed, 3 insertions, 2 deletions
diff --git a/index.php b/index.php
index a70053a8..3acbea74 100644
--- a/index.php
+++ b/index.php
@@ -27,7 +27,7 @@ version_compare(PHP_VERSION, '5.2.3', '<') and exit('Gallery requires PHP 5.2.3
!ini_get('short_open_tag') and exit('Gallery requires short_open_tag to be on.');
// Set the error reporting level. Use E_ALL unless you have a special need.
-error_reporting(E_NONE);
+error_reporting(0);
// Disabling display_errors will effectively disable Kohana error display
// and logging. You can turn off Kohana errors in application/config/config.php
diff --git a/installer/installer.php b/installer/installer.php
index ab2963ba..1a36ddb5 100644
--- a/installer/installer.php
+++ b/installer/installer.php
@@ -50,6 +50,7 @@ class installer {
static function unpack_sql($config) {
$prefix = $config["prefix"];
+ $buf = null;
foreach (file(DOCROOT . "installer/install.sql") as $line) {
$buf .= $line;
if (preg_match("/;$/", $buf)) {
@@ -133,4 +134,4 @@ class installer {
static function prepend_prefix($prefix, $sql) {
return preg_replace("#{([a-zA-Z0-9_]+)}#", "{$prefix}$1", $sql);
}
-} \ No newline at end of file
+}