Permalink
Browse files

Syntax errors.

Signed-off-by: Norv <norv@simplemachines.org>
1 parent 011a56e commit 2f9ebb7afccad40b458486024906993098d2ca8b @norv norv committed Dec 5, 2012
Showing with 5 additions and 5 deletions.
  1. +1 −1 install_script/install.php
  2. +4 −4 install_script/install_db.php
@@ -33,7 +33,7 @@
// -------------------------- DON'T CHANGE ANYTHING BELOW THIS LINE -------------------------------------------------------------------------------------------
define('SMF_INTEGRATION_SETTINGS', serialize(array(
'integrate_menu_buttons' => 'install_menu_button',)));
-define('MOD_INSTALL', true)
+define('MOD_INSTALL', true);
if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
require_once(dirname(__FILE__) . '/SSI.php');
@@ -18,7 +18,7 @@
* The idea behind is: 'name_of_the_db_function' => array(elements like used with $smcFunx['name_of_the_db_function']);
* For example adding two columns could be:
$db_changes['db_add_column'][] = array (
- '{db_prefix}topics',
+ '{db_prefix}topics',
array(
'name' => 'new_column_name',
'type' => 'mediumint',
@@ -28,7 +28,7 @@
'ignore'
);
$db_changes['db_add_column'][] = array (
- '{db_prefix}boards',
+ '{db_prefix}boards',
array(
'name' => 'new_board_column_name',
'type' => 'varchar',
@@ -97,7 +97,7 @@ function install_db_mod ()
$context['warning_missing_db_changes'] = true;
}
else
- $context['has_db_changes']
+ $context['has_db_changes'];
// Sorry, only logged in admins...
isAllowedTo('admin_forum');
@@ -112,7 +112,7 @@ function setup_dbchanges ($uninstall = false, $apply = true)
$revertable_functions = array(
'db_add_column' => ($uninstall ? 'db_remove_column' : 'db_add_column'),
- 'db_add_index' => ($uninstall ? 'db_remove_index' : 'db_add_index')
+ 'db_add_index' => ($uninstall ? 'db_remove_index' : 'db_add_index'),
'db_create_table' => ($uninstall ? 'db_drop_table' : 'db_create_table')
);
// sorry, no data validation. What is here *must* be correct, it's your fault if it isn't.

0 comments on commit 2f9ebb7

Please sign in to comment.