Minor - formatting code

skala
Julio Montoya 12 years ago
parent b5f6034ee7
commit cdc57ce838
  1. 11
      main/calendar/agenda.php

@ -3,13 +3,12 @@
/**
* @package chamilo.calendar
*/
/**
* INIT SECTION
*/
use \ChamiloSession as Session;
// name of the language file that needs to be included
$language_file = array('agenda', 'group');
@ -48,7 +47,9 @@ if (!empty($addresources)) {
'title' => Security::remove_XSS(stripslashes($_POST['title'])), 'content' => Security::remove_XSS(stripslashes($_POST['content'])), 'id' => Security::remove_XSS($_POST['id']), 'action' => Security::remove_XSS($_POST['action']), 'to' => Security::remove_XSS($_POST['selectedform']));
$_SESSION['formelements'] = $form_elements;
// this is to correctly handle edits
if($id){$action="edit";}
if ($id) {
$action = "edit";
}
//print_r($form_elements);
header('Location: '.api_get_path(WEB_CODE_PATH)."resourcelinker/resourcelinker.php?source_id=1&action=$action&id=$id&originalresource=no");
exit;
@ -94,7 +95,6 @@ if ((!empty($_GET['user']) and $_GET['user']=="none") or (!empty($_GET['group'])
}
if (!$is_courseAdmin) {
if (!empty($_GET['toolgroup'])) {
//$_SESSION['toolgroup']=$_GET['toolgroup'];
$toolgroup = Security::remove_XSS($_GET['toolgroup']);
Session::write('toolgroup', $toolgroup);
}
@ -114,7 +114,6 @@ $htmlHeadXtra[] = "<script src=\"tbl_change.js\" type=\"text/javascript\" langua
// setting the name of the tool
$nameTools = get_lang('Agenda'); // language variable in trad4all.inc.php
// showing the header if we are not in the learning path, if we are in
// the learning path, we do not include the banner so we have to explicitly
// include the stylesheet, which is normally done in the header
@ -124,7 +123,6 @@ if (isset($_GET['toolgroup']) && !empty($_GET['toolgroup'])){
$interbreadcrumb[] = array("url" => "../group/group.php", "name" => get_lang('Groups'));
$interbreadcrumb[] = array("url" => "../group/group_space.php?gidReq=".Security::remove_XSS($_GET['toolgroup']), "name" => get_lang('GroupSpace').' '.$group_properties['name']);
Display::display_header($nameTools, 'Agenda');
} elseif (empty($origin) or $origin != 'learnpath') {
Display::display_header($nameTools, 'Agenda');
} else {
@ -296,7 +294,6 @@ if (api_is_allowed_to_edit(false,true) OR (api_get_course_setting('allow_user_ed
$action = 'view';
}
break;
}
}

Loading…
Cancel
Save