summaryrefslogtreecommitdiffstats
path: root/chat/install.php
diff options
context:
space:
mode:
authorPhilip Nicolcev <frugen@gmail.com>2016-04-30 15:41:25 -0400
committerPhilip Nicolcev <frugen@gmail.com>2016-04-30 15:41:25 -0400
commite414b88bf618acb1fa6c7d422669ec67d3f6ac51 (patch)
tree79067a7c736f7542fea6bc0a885ca9c9b00ac059 /chat/install.php
parent907581d416b6b84277e16d5c10c8da84567701a6 (diff)
parent6a4c92984fbe42e4633a6a65792847973f7d36da (diff)
downloadAJAX-Chat-origin/mybb.zip
AJAX-Chat-origin/mybb.tar.gz
AJAX-Chat-origin/mybb.tar.bz2
Merge remote-tracking branch 'origin' into mybborigin/mybb
Conflicts: chat/lib/custom.php
Diffstat (limited to 'chat/install.php')
-rw-r--r--chat/install.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/chat/install.php b/chat/install.php
index fd19e1b..ac579a3 100644
--- a/chat/install.php
+++ b/chat/install.php
@@ -9,6 +9,7 @@
// Show all errors:
error_reporting(E_ALL);
+ini_set('display_errors', 1);
// Remember to set up the config file to point to your database:
file_exists('lib/config.php') or die('Failed to load lib/config.php. Did you remember to create a config file based on config.php.example?');
@@ -31,8 +32,7 @@ class CustomAJAXChatInstaller extends CustomAJAXChatInterface {
$lines = file(AJAX_CHAT_PATH.'chat.sql');
// Stop if an error occurs:
if(!$lines) {
- echo 'Failed to load queries from file (chat.sql).';
- die();
+ die('Failed to load queries from file (chat.sql).');
}
foreach($lines as $line) {
if(empty($line)) {
@@ -77,4 +77,3 @@ $ajaxChatInstaller = new CustomAJAXChatInstaller();
// Create the database tables:
$ajaxChatInstaller->createDataBaseTables();
-?> \ No newline at end of file