Minor: Format code

pull/4193/head
Angel Fernando Quiroz Campos 4 years ago
parent abf73a9002
commit bdc1499e46
  1. 5
      main/inc/lib/api.lib.php
  2. 1
      main/install/configuration.dist.php
  3. 1
      main/lp/learnpathItem.class.php
  4. 2
      plugin/positioning/src/Positioning.php

@ -10198,7 +10198,8 @@ function api_protect_webservices()
}
}
function api_filename_has_blacklisted_stream_wrapper(string $filename) {
function api_filename_has_blacklisted_stream_wrapper(string $filename)
{
if (strpos($filename, '://') > 0) {
$wrappers = stream_get_wrappers();
$allowedWrappers = ['http', 'https', 'file'];
@ -10208,7 +10209,7 @@ function api_filename_has_blacklisted_stream_wrapper(string $filename) {
continue;
}
if (stripos($filename, $wrapper . '://') === 0) {
if (stripos($filename, $wrapper.'://') === 0) {
return true;
}
}

@ -2109,7 +2109,6 @@ INSERT INTO `extra_field` (`extra_field_type`, `field_type`, `variable`, `displa
'INVITEE' => false
];*/
// Allow learnpath prerequisite on quiz to unblock if maximum attempt is reached
//$_configuration['lp_prerequisit_on_quiz_unblock_if_max_attempt_reached'] = false;

@ -2675,6 +2675,7 @@ class learnpathItem
);
$isMaxAttemptReached = ($nbAttempts > 0 && $countAttempts >= $nbAttempts);
return $isMaxAttemptReached;
}

@ -241,7 +241,6 @@ class Positioning extends Plugin
$result = Database::query($sql.$sqlEnd);
if (Database::num_rows($result) > 0) {
return Database::fetch_array($result, 'ASSOC');
} elseif (0 !== $sessionId) {
$sql = "SELECT * FROM $table
@ -251,7 +250,6 @@ class Positioning extends Plugin
";
$result = Database::query($sql.$sqlEnd);
if (Database::num_rows($result) > 0) {
return Database::fetch_array($result, 'ASSOC');
}
}

Loading…
Cancel
Save