From 7d6a5eca4e0a38ae615634542859d29ab79c94e8 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sun, 18 Dec 2011 14:25:13 +0100 Subject: 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. --- ratatoeskr/main.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ratatoeskr/main.php') 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) { -- cgit v1.2.3-70-g09d2