*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -329,7 +329,7 @@ if ($id > 0 || ! empty($ref))
print $langs->trans('AvailabilityPeriod');
print '';
if ($action != 'editavailability')
- print '| id . '">' . img_edit($langs->trans('SetAvailability'), 1) . ' | ';
+ print 'id . '">' . img_edit($langs->trans('SetAvailability'), 1) . ' | ';
print '';
print '';
if ($action == 'editavailability') {
@@ -345,7 +345,7 @@ if ($id > 0 || ! empty($ref))
print $langs->trans('Source');
print ' | ';
if ($action != 'editdemandreason')
- print 'id . '">' . img_edit($langs->trans('SetDemandReason'), 1) . ' | ';
+ print 'id . '">' . img_edit($langs->trans('SetDemandReason'), 1) . ' | ';
print '';
print '';
if ($action == 'editdemandreason') {
diff --git a/htdocs/fichinter/card.php b/htdocs/fichinter/card.php
index 198eb11dddb..3cb613934b9 100644
--- a/htdocs/fichinter/card.php
+++ b/htdocs/fichinter/card.php
@@ -949,7 +949,7 @@ $formfile = new FormFile($db);
if ($conf->contrat->enabled)
$formcontract = new FormContract($db);
-llxHeader('',$langs->trans("Fichinter"));
+llxHeader('',$langs->trans("Intervention"));
if ($action == 'create')
{
diff --git a/htdocs/fichinter/contact.php b/htdocs/fichinter/contact.php
index b0f9ada3af7..854428a5ccf 100644
--- a/htdocs/fichinter/contact.php
+++ b/htdocs/fichinter/contact.php
@@ -106,7 +106,7 @@ $formcompany = new FormCompany($db);
$contactstatic=new Contact($db);
$userstatic=new User($db);
-llxHeader();
+llxHeader('',$langs->trans("Intervention"));
// Mode vue et edition
diff --git a/htdocs/fichinter/document.php b/htdocs/fichinter/document.php
index bd6746c98e4..2acf7d39093 100644
--- a/htdocs/fichinter/document.php
+++ b/htdocs/fichinter/document.php
@@ -81,8 +81,7 @@ include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_pre_headers.tpl.php
$form = new Form($db);
-llxHeader("","",$langs->trans("InterventionCard"));
-
+llxHeader('',$langs->trans("Intervention"));
if ($object->id)
{
diff --git a/htdocs/fichinter/info.php b/htdocs/fichinter/info.php
index 21412fa8064..f577913ebe2 100644
--- a/htdocs/fichinter/info.php
+++ b/htdocs/fichinter/info.php
@@ -49,7 +49,7 @@ if ($id > 0)
* View
*/
-llxHeader();
+llxHeader('',$langs->trans("Intervention"));
$societe = new Societe($db);
$societe->fetch($object->socid);
diff --git a/htdocs/langs/en_US/printing.lang b/htdocs/langs/en_US/printing.lang
index b4956e59c01..ce287f91dfe 100644
--- a/htdocs/langs/en_US/printing.lang
+++ b/htdocs/langs/en_US/printing.lang
@@ -10,6 +10,7 @@ PrintTestDesc=List of Printers.
FileWasSentToPrinter=File %s was sent to printer
NoActivePrintingModuleFound=No active module to print document
PleaseSelectaDriverfromList=Please select a driver from list.
+PleaseConfigureDriverfromList=Please configure the selected driver from list.
SetupDriver=Driver setup
TestDriver=Test
TargetedPrinter=Targeted printer
diff --git a/htdocs/printing/admin/printing.php b/htdocs/printing/admin/printing.php
index 36727048fc4..d848b0befce 100644
--- a/htdocs/printing/admin/printing.php
+++ b/htdocs/printing/admin/printing.php
@@ -229,7 +229,12 @@ if ($mode == 'test' && $user->admin)
$langs->load($driver);
$printer = new $classname($db);
//print ''.print_r($printer, true).' ';
- print $printer->listAvailablePrinters();
+ if (count($printer->getlist_available_printers)) {
+ print $printer->listAvailablePrinters();
+ }
+ else {
+ print $langs->trans('PleaseConfigureDriverfromList');
+ }
} else {
print $langs->trans('PleaseSelectaDriverfromList');
diff --git a/htdocs/projet/tasks.php b/htdocs/projet/tasks.php
index 8a4c2e53d89..018bf862bba 100644
--- a/htdocs/projet/tasks.php
+++ b/htdocs/projet/tasks.php
@@ -55,8 +55,8 @@ if ($id > 0 || ! empty($ref))
{
// fetch optionals attributes and labels
$extralabels_projet=$extrafields_project->fetch_name_optionals_label($object->table_element);
- $extralabels_task=$extrafields_task->fetch_name_optionals_label($taskstatic->table_element);
}
+$extralabels_task=$extrafields_task->fetch_name_optionals_label($taskstatic->table_element);
// Security check
$socid=0;
diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php
index ff5e7918b43..e650a8ea760 100644
--- a/htdocs/societe/soc.php
+++ b/htdocs/societe/soc.php
@@ -740,7 +740,7 @@ $formcompany = new FormCompany($db);
if ($socid > 0 && empty($object->id))
{
- $res=$object->fetch($socid);
+ $result=$object->fetch($socid);
if ($result <= 0) dol_print_error('',$object->error);
}
diff --git a/test/phpunit/FunctionsLibTest.php b/test/phpunit/FunctionsLibTest.php
index 49400c119a5..1ca8daefdcd 100755
--- a/test/phpunit/FunctionsLibTest.php
+++ b/test/phpunit/FunctionsLibTest.php
@@ -639,11 +639,11 @@ class FunctionsLibTest extends PHPUnit_Framework_TestCase
$s=img_picto('title','/fullpath/img.png','',1);
print __METHOD__." s=".$s."\n";
- $this->assertEquals(' ',$s,'testImgPicto3');
+ $this->assertEquals(' ',$s,'testImgPicto3');
$s=img_picto('title','/fullpath/img.png','',true);
print __METHOD__." s=".$s."\n";
- $this->assertEquals(' ',$s,'testImgPicto4');
+ $this->assertEquals(' ',$s,'testImgPicto4');
$s=img_picto('title:alt','/fullpath/img.png','',true);
print __METHOD__." s=".$s."\n";
|