Minor - Fix Flint

pull/3285/head
Angel Fernando Quiroz Campos 6 years ago
parent f4bc362089
commit 3721ecc115
  1. 9
      main/inc/lib/banner.lib.php
  2. 2
      main/inc/lib/formvalidator/FormValidator.class.php
  3. 2
      main/inc/lib/statistics.lib.php
  4. 1
      main/messages/new_message.php
  5. 2
      main/work/work.lib.php
  6. 2
      plugin/bbb/listing.php

@ -165,7 +165,7 @@ function getCustomTabs()
$isStudent = api_is_student();
$cacheAvailable = api_get_configuration_value('apc');
if ($cacheAvailable === true) {
$apcVar = api_get_configuration_value('apc_prefix').'custom_tabs_url_'.$urlId.'_student_'.($isStudent?'1':'0');
$apcVar = api_get_configuration_value('apc_prefix').'custom_tabs_url_'.$urlId.'_student_'.($isStudent ? '1' : '0');
if (apcu_exists($apcVar)) {
return apcu_fetch($apcVar);
}
@ -190,9 +190,10 @@ function getCustomTabs()
}
}
if ($cacheAvailable === true) {
$apcVar = api_get_configuration_value('apc_prefix').'custom_tabs_url_'.$urlId.'_student_'.($isStudent?'1':'0');
$apcVar = api_get_configuration_value('apc_prefix').'custom_tabs_url_'.$urlId.'_student_'.($isStudent ? '1' : '0');
apcu_store($apcVar, $customTabs, 15);
}
return $customTabs;
}
@ -879,7 +880,9 @@ function return_breadcrumb($interbreadcrumb, $language_file, $nameTools)
/**
* Helper function to get the number of users online, using cache if available.
* @param integer $minutes Number of minutes (how many users were active in those last X minutes?)
*
* @param int $minutes Number of minutes (how many users were active in those last X minutes?)
*
* @return int The number of users currently online
*/
function getOnlineUsersCount($minutes = null)

@ -873,7 +873,7 @@ EOT;
/**
* @param string $name
* @param mixed $label String, or array if form element with a comment
* @param mixed $label String, or array if form element with a comment
* @param array $options
* @param array $attributes
*

@ -799,6 +799,7 @@ class Statistics
* Show some stats about the accesses to the different course tools.
*
* @param array $result If defined, this serves as data. Otherwise, will get the data from getToolsStats()
*
* @return string HTML table
*/
public static function printToolStats($result = null)
@ -806,6 +807,7 @@ class Statistics
if (empty($result)) {
$result = self::getToolsStats();
}
return self::printStats(get_lang('PlatformToolAccess'), $result, true);
}

@ -1,7 +1,6 @@
<?php
/* For licensing terms, see /license.txt */
/**
* This script shows a compose area (wysiwyg editor if supported, otherwise
* a simple textarea) where the user can type a message.

@ -4483,7 +4483,7 @@ function deleteAllWorkPerUser($userId, $courseInfo)
}
/**
* @param int $item_id
* @param int $item_id
* @param array $courseInfo course info
*
* @return bool

@ -140,7 +140,7 @@ if ($conferenceManager) {
$result = $bbb->regenerateRecording($result['id']);
if ($result) {
Display::addFlash(Display::return_message(get_lang('Success')));
} else {
} else {
Display::addFlash(Display::return_message(get_lang('Error'), 'error'));
}
}

Loading…
Cancel
Save