]> git.mjollnir.org Git - moodle.git/commitdiff
added logging for blog views
authortoyomoyo <toyomoyo>
Tue, 2 May 2006 02:44:35 +0000 (02:44 +0000)
committertoyomoyo <toyomoyo>
Tue, 2 May 2006 02:44:35 +0000 (02:44 +0000)
blog/index.php

index 9a57c4f18f25911d08503531fb55421b850a1ba8..1dbb28bff1affbc6b5179e6cea10232c9c8804ad 100755 (executable)
@@ -151,6 +151,8 @@ $blogpage = optional_param('blogpage',0,PARAM_INT);
 
 blog_print_html_formatted_entries($userid, $postid, $limit, ($blogpage * $limit) ,$filtertype, $filterselect, $tagid, $tag, $filtertype, $filterselect);
 
+add_to_log($site->id, 'blog', 'view', 'index.php?filtertype='.$filtertype.'&amp;filterselect='.$filterselect.'&amp;postid='.$postid.'&amp;tagid='.$tagid.'&amp;tag='.$tag, 'view blog entry');
+
 include($CFG->dirroot .'/blog/footer.php');
 
 ?>