Fix travis
This commit is contained in:
parent
11be7af840
commit
91bffecfe3
3 changed files with 6 additions and 5 deletions
|
|
@ -277,7 +277,7 @@ function getLicenceHeader($user, $langs, $now)
|
|||
* Actions
|
||||
*/
|
||||
|
||||
if ($dirins && $action == 'initmodule' && $modulename) { // permissions already checked
|
||||
if ($dirins && $action == 'initmodule' && $modulename) { // Test on permission already done
|
||||
$modulename = dol_string_nounprintableascii(dol_string_unaccent(ucwords($modulename))); // Force first letter in uppercase
|
||||
$destdir = '/not_set/';
|
||||
|
||||
|
|
@ -1078,7 +1078,7 @@ if ($dirins && $action == 'confirm_removefile' && !empty($module) /* && $user->h
|
|||
}
|
||||
|
||||
// Init an object
|
||||
if ($dirins && $action == 'initobject' && $module && $objectname) { // Permissions already checked
|
||||
if ($dirins && $action == 'initobject' && $module && $objectname) { // Test on permission already done
|
||||
$warning = 0;
|
||||
|
||||
$objectname = dol_string_nounprintableascii(dol_string_unaccent(ucwords($objectname))); // Force first letter in uppercase
|
||||
|
|
|
|||
|
|
@ -795,9 +795,10 @@ class CodingPhpTest extends CommonClassTest
|
|||
&& !preg_match('/not required/i', $val[0])) {
|
||||
$ok = false;
|
||||
|
||||
var_dump($file['fullname'].' '.$val[0].' '.$filecontentaction);exit;
|
||||
// Uncomment this for a scan on one given file
|
||||
//var_dump($file['fullname'].' '.$val[0].' '.$filecontentaction);exit;
|
||||
|
||||
print "File ".$file['relativename']." - Line: ".$val[0]."\n";
|
||||
print "\nError on file ".$file['relativename']." - Line: ".$val[0]."\n";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -236,7 +236,7 @@ abstract class CommonClassTest extends TestCase
|
|||
echo $line . "\n";
|
||||
}
|
||||
} else {
|
||||
echo "Error: File $logFile does not exist or is not readable.\n";
|
||||
echo "File $logFile does not exist or is not readable.\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue