Scrutinizer Auto-Fixes

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
pull/2487/head
Scrutinizer Auto-Fixer 8 years ago
parent 6d0f05e2ac
commit 9b4780a691
  1. 2
      main/auth/conditional_login/complete_phone_number.php
  2. 2
      main/auth/lostPassword.php
  3. 4
      main/mySpace/course.php
  4. 2
      news_list.php

@ -5,7 +5,7 @@ require_once dirname(__FILE__).'/../../inc/global.inc.php';
$url = api_get_path(WEB_PATH).'main/auth/conditional_login/complete_phone_number.php';
if (! isset($_SESSION['conditional_login']['uid']))
die("Not Authorised");
die("Not Authorised");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="fr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml">

@ -23,7 +23,7 @@ require_once __DIR__.'/../inc/global.inc.php';
// Forbidden to retrieve the lost password
if (api_get_setting('allow_lostpassword') == 'false') {
api_not_allowed(true);
api_not_allowed(true);
}
$reset = Request::get('reset');

@ -35,8 +35,8 @@ if (isset($_GET["user_id"]) && $_GET["user_id"] != "" && !isset($_GET["type"]))
function count_courses()
{
global $nb_courses;
return $nb_courses;
global $nb_courses;
return $nb_courses;
}
// Checking if the current coach is the admin coach

@ -7,7 +7,7 @@ $tool_name = get_lang('SystemAnnouncements');
$actions = '';
if (api_is_platform_admin()) {
$actions = '<a href="'.api_get_path(WEB_PATH).'main/admin/system_announcements.php">'.
$actions = '<a href="'.api_get_path(WEB_PATH).'main/admin/system_announcements.php">'.
Display::return_icon('edit.png', get_lang('EditSystemAnnouncement'), array(), 32).'</a>';
}

Loading…
Cancel
Save