Save the last visualization of web page - refs #7279
parent
61d6071423
commit
651363fc6f
@ -0,0 +1,22 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
/* For licensing terms, see /license.txt */ |
||||||
|
|
||||||
|
/** |
||||||
|
* Get the intro steps for the web page |
||||||
|
* @author Angel Fernando Quiroz Campos <angel.quiroz@beeznest.com> |
||||||
|
* @package chamilo.plugin.tour |
||||||
|
*/ |
||||||
|
require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/main/inc/global.inc.php'; |
||||||
|
require_once dirname((__DIR__)) . '/config.php'; |
||||||
|
|
||||||
|
if (!api_is_anonymous()) { |
||||||
|
$currentPageClass = isset($_POST['page_class']) ? $_POST['page_class'] : ''; |
||||||
|
|
||||||
|
if (!empty($currentPageClass)) { |
||||||
|
$userId = api_get_user_id(); |
||||||
|
|
||||||
|
$tourPlugin = Tour::create(); |
||||||
|
$tourPlugin->saveCompletedTour($currentPageClass, $userId); |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue