aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/main.php
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2011-12-18 14:25:13 +0100
committerKevin Chabowski <kevin@kch42.de>2011-12-18 14:25:13 +0100
commit7d6a5eca4e0a38ae615634542859d29ab79c94e8 (patch)
tree371d03aed7bbbc87a005ac2d33e6138163d9e0b8 /ratatoeskr/main.php
parent58ca56ac72724ed86690cbb75f91cdde8f5b2737 (diff)
downloadratatoeskr-cms-7d6a5eca4e0a38ae615634542859d29ab79c94e8.tar.gz
ratatoeskr-cms-7d6a5eca4e0a38ae615634542859d29ab79c94e8.tar.bz2
ratatoeskr-cms-7d6a5eca4e0a38ae615634542859d29ab79c94e8.zip
Modified db-model for plugins and fixed a bug in the frontend.
* The db-model for plugins was updated, so it is compatible with the plugin packages. * Preview of comments now works again.
Diffstat (limited to 'ratatoeskr/main.php')
-rw-r--r--ratatoeskr/main.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/ratatoeskr/main.php b/ratatoeskr/main.php
index 270537d..d3be695 100644
--- a/ratatoeskr/main.php
+++ b/ratatoeskr/main.php
@@ -20,14 +20,16 @@ require_once(dirname(__FILE__) . "/backend.php");
function ratatoeskr()
{
- global $backend_subactions, $ste, $url_handlers;
+ global $backend_subactions, $ste, $url_handlers, $ratatoeskr_settings;
session_start();
if(!CONFIG_FILLED_OUT)
return setup();
db_connect();
- $activeplugins = array_filter(PluginDB::all(), function($plugin) { return $plugin->active; });
+ clean_database();
+
+ $activeplugins = array_filter(Plugin::all(), function($plugin) { return $plugin->active; });
$plugin_objs = array();
foreach($activeplugins as $plugin)
{