Skip to content

Commit

Permalink
Tidy up installer: Remove $mod_data array (redundant) and remove Inst…
Browse files Browse the repository at this point in the history
…all complete message
  • Loading branch information
iMattPro committed Oct 10, 2011
1 parent 608ca99 commit 2c447a0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
28 changes: 10 additions & 18 deletions mssti_abbc3/root/install_abbc3.php
Expand Up @@ -33,25 +33,19 @@
trigger_error('Please download the latest UMIL (Unified MOD Install Library) from: <a href="http://www.phpbb.com/mods/umil/" onclick="window.open(this.href);return false;">phpBB.com/mods/umil</a>', E_USER_ERROR);
}

/** Set some default values so the user havn't to run any install - Start **/
$mod_data = array(
'config' => 'ABBC3_VERSION',
'name' => 'INSTALLER_TITLE',
'language' => array('mods/acp_abbcodes', 'mods/abbcode', 'posting', 'install')
);
/** Set some default values so the user havn't to run any install - End **/

// The name of the mod to be displayed during installation.
$mod_name = $mod_data['name'];
$mod_name = 'INSTALLER_TITLE';

// The name of the config variable which will hold the currently installed version
$version_config_name = $mod_data['config'];
/*
* The name of the config variable which will hold the currently installed version
* UMIL will handle checking, setting, and updating the version itself.
*/
$version_config_name = 'ABBC3_VERSION';

// Add the language file if one was specified
if (isset($mod_data['language']))
{
$user->add_lang($mod_data['language']);
}
/*
* The language file which will be included when installing
*/
$user->add_lang(array('mods/acp_abbcodes', 'mods/abbcode', 'posting', 'install'));

// Logo Image
$logo_img = $phpbb_root_path . 'styles/abbcode/abbc3_logo.png';
Expand Down Expand Up @@ -460,8 +454,6 @@ function abbc3_308($action, $version)

cache_purge();

$message .= $user->lang['INSTALLER_INSTALL_END'];

// return a message
return $message;
}
Expand Down
2 changes: 1 addition & 1 deletion mssti_abbc3/root/language/en/mods/acp_abbcodes.php
Expand Up @@ -181,7 +181,7 @@
'INSTALLER_INSTALL_WELCOME_NOTE' => 'Please be advised that this process might overwrite existing custom BBcodes and as a result, those BBcodes might not display correctly due to the changes introduced by ABBC3’s BBcodes.
<br />If you experience problems use the <a href="http://www.phpbb.com/support/stk/" title="" onclick="window.open(this.href);return false;">Support Toolkit <em>(STK)</em></a> <strong>Admin tools » Reparse BBCode</strong> feature.
<br /><br />Before adding this MOD to your board, you should back up files and database first.',
'INSTALLER_INSTALL_END' => 'You should now <a href="./index.php">login to your board</a> and check if everything is working fine. <br />Do not forget to delete, rename or move this file! <strong><em>install_abbc3.php</em></strong>',
// 'INSTALLER_INSTALL_END' => 'You should now <a href="./index.php">login to your board</a> and check if everything is working fine. <br />Do not forget to delete, rename or move this file! <strong><em>install_abbc3.php</em></strong>',
// Stages
'INSTALLER_CONFIGS_ADD' => 'ABBC3 config',
'INSTALLER_BBCODES_ADD' => 'ABBC3 bbcodes',
Expand Down

0 comments on commit 2c447a0

Please sign in to comment.