summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2026-04-16 11:57:21 +0100
committerlsces <lester@lsces.co.uk>2026-04-16 11:57:21 +0100
commitec4d0577acd28186297c92118e0c06c31fec3de6 (patch)
tree0f7500e196db7dcc367c0623569c1b6d6767074e /includes
parent1abcf18a376a1d5debb2350dbf79ea61fb368014 (diff)
downloadliberty-ec4d0577acd28186297c92118e0c06c31fec3de6.tar.gz
liberty-ec4d0577acd28186297c92118e0c06c31fec3de6.tar.bz2
liberty-ec4d0577acd28186297c92118e0c06c31fec3de6.zip
Default to html on new install
Diffstat (limited to 'includes')
-rwxr-xr-xincludes/classes/LibertySystem.php18
1 files changed, 5 insertions, 13 deletions
diff --git a/includes/classes/LibertySystem.php b/includes/classes/LibertySystem.php
index e1669ff..159e4e8 100755
--- a/includes/classes/LibertySystem.php
+++ b/includes/classes/LibertySystem.php
@@ -237,11 +237,11 @@ class LibertySystem extends BitSingleton {
// if no current default format or no format plugins active
// activate format.tikiwiki and make it the default format plugin
// This happens during installation and therefore requires that we include the plugin file for the constant definitions
- $plugin_file = $this->mPluginPath.'format.tikiwiki.php';
+ $plugin_file = $this->mPluginPath.'format.bithtml.php';
if( $format_plugin_count == 0 || $default_format_found == 0 && is_file( $plugin_file ) ) {
require_once $plugin_file;
- $this->setActivePlugin( PLUGIN_GUID_TIKIWIKI );
- $gBitSystem->storeConfig( 'default_format', PLUGIN_GUID_TIKIWIKI, $this->mSystem );
+ $this->setActivePlugin( PLUGIN_GUID_BITHTML );
+ $gBitSystem->storeConfig( 'default_format', PLUGIN_GUID_BITHTML, $this->mSystem );
//make memory match db
$this->loadActivePlugins();
}
@@ -594,7 +594,7 @@ class LibertySystem extends BitSingleton {
* @return void
**/
public function loadContentTypes( $pCacheTime=BIT_QUERY_CACHE_TIME ) {
- if ( $this->mDb->tableExists( 'liberty_content_types' ) ) {
+ if ( $this->mDb->mDb && $this->mDb->tableExists( 'liberty_content_types' ) ) {
if( $rs = $this->mDb->query( "SELECT * FROM `".BIT_DB_PREFIX."liberty_content_types`", null, BIT_QUERY_DEFAULT, BIT_QUERY_DEFAULT ) ) {
while( $row = $rs->fetchRow() ) {
// translate name
@@ -821,15 +821,7 @@ class LibertySystem extends BitSingleton {
'iexplain' => $ext,
'url' => 'only',
];
-
-/* if( !$ret = BitIcon::read( $biticon ) ) {
- $biticon['iname'] = strtolower( $pExt );
- if( !$ret = BitIcon::read( $biticon ) ) {
- $biticon['iname'] = 'generic';
- $ret = BitIcon::read( $biticon );
- }
- }
-*/
+ $ret = \Bitweaver\Plugins\smarty_function_biticon( $biticon );
}
return $ret;
}