Skip to content

Commit

Permalink
Syntax errors.
Browse files Browse the repository at this point in the history
Signed-off-by: Norv <norv@simplemachines.org>
  • Loading branch information
norv committed Dec 5, 2012
1 parent 011a56e commit 2f9ebb7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion install_script/install.php
Expand Up @@ -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');
Expand Down
8 changes: 4 additions & 4 deletions install_script/install_db.php
Expand Up @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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');
Expand All @@ -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.
Expand Down

0 comments on commit 2f9ebb7

Please sign in to comment.