From 4a8a998519a52354a8b5c2616bc90616d8581a59 Mon Sep 17 00:00:00 2001 From: ak4t0sh Date: Tue, 23 Sep 2014 00:04:06 +0200 Subject: [PATCH] remove forum_discussions --- plugins/moodle/modules/moodle_mod_forum.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/plugins/moodle/modules/moodle_mod_forum.php b/plugins/moodle/modules/moodle_mod_forum.php index c14c14de..884e2789 100644 --- a/plugins/moodle/modules/moodle_mod_forum.php +++ b/plugins/moodle/modules/moodle_mod_forum.php @@ -45,9 +45,6 @@ if (count($argv) === 2 && $argv[1] === 'config') { echo "forum_posts.label posts\n"; echo "forum_posts.min 0\n"; echo "forum_posts.draw AREA\n"; - echo "forum_discussions.draw STACK\n"; - echo "forum_discussions.min 0\n"; - echo "forum_discussions.label discussions\n"; exit(0); } @@ -64,9 +61,3 @@ if (($stmt = $dbh->query("SELECT count(id) FROM {$table_prefix}forum_posts WHERE $nb = $stmt->fetchColumn(); } echo "forum_posts.value $nb\n"; - -$nb = 0; -if (($stmt = $dbh->query("SELECT count(id) FROM {$table_prefix}forum_discussions WHERE timemodified > $graph_period")) != false) { - $nb = $stmt->fetchColumn(); -} -echo "forum_discussions.value $nb\n";