Fix code Stickler

This commit is contained in:
ATM john 2021-04-18 22:38:18 +02:00
parent fff358f040
commit 781756913b
2 changed files with 6 additions and 7 deletions

View File

@ -9713,6 +9713,7 @@ function dolGetButtonAction($label, $html = '', $actionType = 'default', $url =
/** /**
* Add space between dolGetButtonTitle * Add space between dolGetButtonTitle
* *
* @param string $moreClass more css class label
* @return string html of title separator * @return string html of title separator
*/ */
function dolGetButtonTitleSeparator($moreClass = "") function dolGetButtonTitleSeparator($moreClass = "")
@ -9765,8 +9766,7 @@ function dolGetButtonTitle($label, $helpText = '', $iconClass = 'fa fa-file', $u
if ($status == 2) { if ($status == 2) {
$attr['class'] .= ' btnTitleSelected'; $attr['class'] .= ' btnTitleSelected';
} } elseif ($status <= 0) {
elseif ($status <= 0) {
$attr['class'] .= ' refused'; $attr['class'] .= ' refused';
$attr['href'] = ''; $attr['href'] = '';

View File

@ -2318,7 +2318,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
* *
* @return int <0 if Error, 0 == no update needed, >0 if need update * @return int <0 if Error, 0 == no update needed, >0 if need update
*/ */
function checkForUpdate(){ public function checkForUpdate(){
require_once DOL_DOCUMENT_ROOT.'/core/lib/geturl.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/geturl.lib.php';
if (!empty($this->url_last_version)) { if (!empty($this->url_last_version)) {
$lastVersion = getURLContent($this->url_last_version, 'GET', '', 1, array(), array('http', 'https'), 0); // Accept http or https links on external remote server only $lastVersion = getURLContent($this->url_last_version, 'GET', '', 1, array(), array('http', 'https'), 0); // Accept http or https links on external remote server only
@ -2332,8 +2332,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
$this->needUpdate = false; $this->needUpdate = false;
return 0; return 0;
} }
} } else {
else{
return -1; return -1;
} }
} }