diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-08-05 17:59:20 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-08-05 17:59:20 +0000 |
| commit | e11e7788cf8bcc9c0ebb1002170452f178562e94 (patch) | |
| tree | 3ad0310c75912cfb1dfd1cdff9f7652d4a56382d /install_packages.php | |
| parent | 0516cdad33ec02be5e1184ce158d2aa6bf78e2a3 (diff) | |
| download | install-e11e7788cf8bcc9c0ebb1002170452f178562e94.tar.gz install-e11e7788cf8bcc9c0ebb1002170452f178562e94.tar.bz2 install-e11e7788cf8bcc9c0ebb1002170452f178562e94.zip | |
set tikiwiki plugin as default during installation
Diffstat (limited to 'install_packages.php')
| -rw-r--r-- | install_packages.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/install_packages.php b/install_packages.php index 21f7b7c..106e5c1 100644 --- a/install_packages.php +++ b/install_packages.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_install/install_packages.php,v 1.39 2006/08/05 15:41:38 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_install/install_packages.php,v 1.40 2006/08/05 17:59:20 squareing Exp $ * @package install * @subpackage functions */ @@ -227,6 +227,18 @@ if( !empty( $_REQUEST['cancel'] ) ) { if( in_array( 'users', $_REQUEST['packages'] ) ) { // These hardcoded queries need to go in here to avoid constraint violations //$gBitUser->mDb->query( "INSERT INTO `".BIT_DB_PREFIX."liberty_plugins` (`plugin_guid`, `plugin_type`, `is_active`, `plugin_description`) VALUES ( 'tikiwiki', 'format', 'y', 'TikiWiki Syntax Format Parser' )" ); + + // Set the default format to get quicktags and content storing working + $plugin_file = LIBERTY_PKG_PATH.'plugins/format.tikiwiki.php'; + if( is_file( $plugin_file ) ) { + require_once( $plugin_file ); + //$gLibertySystem->setActivePlugins( array( PLUGIN_GUID_TIKIWIKI => 'y' ) ); + // manually set the config settings to avoid problems + $gBitSystem->storeConfig( 'liberty_plugin_file_'.PLUGIN_GUID_TIKIWIKI, $plugin_file, LIBERTY_PKG_NAME ); + $gBitSystem->storeConfig( 'liberty_plugin_status_'.PLUGIN_GUID_TIKIWIKI, 'y', LIBERTY_PKG_NAME ); + $gBitSystem->storeConfig( 'default_format', PLUGIN_GUID_TIKIWIKI, LIBERTY_PKG_NAME ); + } + // Creating 'root' user has id=1. phpBB starts with user_id=2, so this is a hack to keep things in sync $rootUser = new BitPermUser(); $storeHash = array( 'real_name' => 'root', 'login' => 'root', 'password' => $_SESSION['password'], 'email' => 'root@localhost', 'pass_due' => FALSE, 'user_id' => ROOT_USER_ID ); |
