Browse Source

[svn r18427] minor call to event_access_tool see FS#3642

Carlos Vargas 16 years ago
parent
commit
2a33ac69de
2 changed files with 9 additions and 0 deletions
  1. 4 0
      main/glossary/index.php
  2. 5 0
      main/notebook/index.php

+ 4 - 0
main/glossary/index.php

@@ -11,6 +11,7 @@ $language_file = array('glossary');
 
 // including the global dokeos file
 require_once('../inc/global.inc.php');
+include('../inc/lib/events.lib.inc.php');
 
 // the section (tabs)
 $this_section=SECTION_COURSES;
@@ -27,6 +28,9 @@ $htmlHeadXtra[] = javascript_glossary();
 // setting the tool constants
 $tool = TOOL_GLOSSARY;
 
+// tracking
+event_access_tool(TOOL_GLOSSARY);
+
 // displaying the header
 Display::display_header(get_lang(ucfirst($tool)));
 

+ 5 - 0
main/notebook/index.php

@@ -13,10 +13,12 @@ $language_file = array('notebook');
 
 // including the global dokeos file
 require_once('../inc/global.inc.php');
+include('../inc/lib/events.lib.inc.php');
 
 // the section (tabs)
 $this_section=SECTION_COURSES;
 
+
 // notice for unauthorized people.
 api_protect_course_script(true);
 
@@ -29,6 +31,9 @@ $htmlHeadXtra[] = javascript_notebook();
 // setting the tool constants
 $tool = TOOL_NOTEBOOK;
 
+// tracking
+event_access_tool(TOOL_NOTEBOOK);
+
 // displaying the header
 Display::display_header(get_lang(ucfirst($tool)));