Minor - remove whitespaces

ofaj
jmontoyaa 10 years ago
parent 45b53b2407
commit c4c0e0fde5
  1. 4
      main/attendance/attendance_edit.php
  2. 4
      main/course_info/tools.php
  3. 1
      main/course_progress/layout_no_header.php
  4. 1
      main/coursecopy/import_backup.php
  5. 68
      main/dashboard/dashboard_controller.php
  6. 2
      main/dashboard/index.php
  7. 3
      main/dashboard/layout.php
  8. 4
      main/group/group_overview.php

@ -70,11 +70,11 @@ $form->addButtonUpdate(get_lang('Save'));
// set default values // set default values
$default['title'] = Security::remove_XSS($title); $default['title'] = Security::remove_XSS($title);
$default['description'] = Security::remove_XSS($description,STUDENT); $default['description'] = Security::remove_XSS($description, STUDENT);
$default['attendance_qualify_title'] = $attendance_qualify_title; $default['attendance_qualify_title'] = $attendance_qualify_title;
$default['attendance_weight'] = $attendance_weight; $default['attendance_weight'] = $attendance_weight;
$link_info = GradebookUtils::is_resource_in_course_gradebook( $link_info = GradebookUtils::isResourceInCourseGradebook(
api_get_course_id(), api_get_course_id(),
7, 7,
$attendance_id, $attendance_id,

@ -150,9 +150,7 @@ switch ($action) {
} }
$iconsTools .= '</div>'; $iconsTools .= '</div>';
$iconsTools .= '</div>'; $iconsTools .= '</div>';
$content = $iconsTools; $content = $iconsTools;
break; break;
} }
@ -163,7 +161,7 @@ function getCustomWebIconPath()
{ {
// Check if directory exists or create it if it doesn't // Check if directory exists or create it if it doesn't
$dir = api_get_path(WEB_COURSE_PATH).api_get_course_path().'/upload/course_home_icons/'; $dir = api_get_path(WEB_COURSE_PATH).api_get_course_path().'/upload/course_home_icons/';
return $dir; return $dir;
} }
$tpl = new Template($toolName); $tpl = new Template($toolName);

@ -10,6 +10,5 @@ $tool = isset($tool) ? $tool : null;
// Tracking // Tracking
Event::event_access_tool($tool); Event::event_access_tool($tool);
// Display // Display
echo $content; echo $content;

@ -5,7 +5,6 @@ use Chamilo\CourseBundle\Component\CourseCopy\CourseSelectForm;
use Chamilo\CourseBundle\Component\CourseCopy\CourseArchiver; use Chamilo\CourseBundle\Component\CourseCopy\CourseArchiver;
use Chamilo\CourseBundle\Component\CourseCopy\CourseRestorer; use Chamilo\CourseBundle\Component\CourseCopy\CourseRestorer;
/** /**
* Import a backup. * Import a backup.
* *

@ -85,40 +85,40 @@ class DashboardController
$this->view->render(); $this->view->render();
} }
/** /**
* This method allow store user blocks from dashboard manager * This method allow store user blocks from dashboard manager
* render to dashboard.php view * render to dashboard.php view
*/ */
public function store_user_block() public function store_user_block()
{ {
$data = array(); $data = array();
$user_id = $this->user_id; $user_id = $this->user_id;
if (strtoupper($_SERVER['REQUEST_METHOD']) == "POST") { if (strtoupper($_SERVER['REQUEST_METHOD']) == "POST") {
$enabled_blocks = $_POST['enabled_blocks']; $enabled_blocks = $_POST['enabled_blocks'];
$columns = $_POST['columns']; $columns = $_POST['columns'];
$affected_rows = DashboardManager::store_user_blocks($user_id, $enabled_blocks, $columns); $affected_rows = DashboardManager::store_user_blocks($user_id, $enabled_blocks, $columns);
if ($affected_rows) { if ($affected_rows) {
$data['success'] = true; $data['success'] = true;
} }
} }
$data['dashboard_view'] = 'list'; $data['dashboard_view'] = 'list';
// render to the view // render to the view
$this->view->set_data($data); $this->view->set_data($data);
$this->view->set_layout('layout'); $this->view->set_layout('layout');
$this->view->set_template('dashboard'); $this->view->set_template('dashboard');
$this->view->render(); $this->view->render();
} }
/** /**
* This method is used when you close a block from dashboard block interface * This method is used when you close a block from dashboard block interface
* render to dashboard.php view * render to dashboard.php view
*/ */
public function close_user_block($path) public function close_user_block($path)
{ {
$user_id = $this->user_id; $user_id = $this->user_id;
$result = DashboardManager::close_user_block($user_id, $path); $result = DashboardManager::close_user_block($user_id, $path);
$this->display($result); $this->display($result);
} }
} }

@ -51,6 +51,6 @@ switch ($action) {
case 'disable_block': case 'disable_block':
$dashboard_controller->close_user_block($path); $dashboard_controller->close_user_block($path);
break; break;
default : default:
$dashboard_controller->display(); $dashboard_controller->display();
} }

@ -2,7 +2,7 @@
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/** /**
* Layout (principal view) used for structuring other views * Layout (principal view) used for structuring other views
* @author Christian Fasanando <christian1827@gmail.com> * @author Christian Fasanando <christian1827@gmail.com>
* @package chamilo.dashboard * @package chamilo.dashboard
*/ */
@ -17,5 +17,4 @@ Display :: display_header($tool_name);
// Display // Display
echo $content; echo $content;
// Footer
Display :: display_footer(); Display :: display_footer();

@ -60,7 +60,7 @@ if (isset($_GET['action'])) {
break; break;
} }
break; break;
} }
} }
/* Header */ /* Header */
@ -84,7 +84,7 @@ if (!isset ($_GET['origin']) || $_GET['origin'] != 'learnpath') {
$actions = '<a href="group_creation.php?'.api_get_cidreq().'">'. $actions = '<a href="group_creation.php?'.api_get_cidreq().'">'.
Display::return_icon('add.png', get_lang('NewGroupCreate'), '', ICON_SIZE_MEDIUM).'</a>'; Display::return_icon('add.png', get_lang('NewGroupCreate'), '', ICON_SIZE_MEDIUM).'</a>';
if (api_get_setting('allow_group_categories') == 'true') { if (api_get_setting('allow_group_categories') === 'true') {
$actions.= '<a href="group_category.php?'.api_get_cidreq().'&action=add_category">'. $actions.= '<a href="group_category.php?'.api_get_cidreq().'&action=add_category">'.
Display::return_icon('new_folder.png', get_lang('AddCategory'), '', ICON_SIZE_MEDIUM).'</a>'; Display::return_icon('new_folder.png', get_lang('AddCategory'), '', ICON_SIZE_MEDIUM).'</a>';
} else { } else {

Loading…
Cancel
Save