Skip to content

Commit

Permalink
Fix #3236
Browse files Browse the repository at this point in the history
  • Loading branch information
Juanjo Menent committed Aug 7, 2015
1 parent 5177c5f commit ef6b96b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions htdocs/langs/en_US/printing.lang
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion htdocs/printing/admin/printing.php
Expand Up @@ -229,7 +229,12 @@
$langs->load($driver);
$printer = new $classname($db);
//print '<pre>'.print_r($printer, true).'</pre>';
print $printer->listAvailablePrinters();
if (count($printer->getlist_available_printers)) {
print $printer->listAvailablePrinters();
}
else {
print $langs->trans('PleaseConfigureDriverfromList');
}

} else {
print $langs->trans('PleaseSelectaDriverfromList');
Expand Down

0 comments on commit ef6b96b

Please sign in to comment.