diff --git a/htdocs/adherents/canvas/actions_adherentcard_common.class.php b/htdocs/adherents/canvas/actions_adherentcard_common.class.php
index 2d577270677..99aa24abcd0 100644
--- a/htdocs/adherents/canvas/actions_adherentcard_common.class.php
+++ b/htdocs/adherents/canvas/actions_adherentcard_common.class.php
@@ -17,14 +17,13 @@
*/
/**
- * \file htdocs/contact/canvas/actions_adherentcard_common.class.php
- * \ingroup thirdparty
+ * \file htdocs/adherents/canvas/actions_adherentcard_common.class.php
+ * \ingroup adherent
* \brief Fichier de la classe Adherent card controller (common)
*/
/**
- * \class ActionsAdherentCardCommon
- * \brief Classe permettant la gestion des adherents par defaut
+ * Class to maage members using default canvas
*/
abstract class ActionsAdherentCardCommon
{
diff --git a/htdocs/core/boxes/box_ficheinter.php b/htdocs/core/boxes/box_ficheinter.php
index 5c4fe1ad035..4d199c3d642 100644
--- a/htdocs/core/boxes/box_ficheinter.php
+++ b/htdocs/core/boxes/box_ficheinter.php
@@ -16,16 +16,16 @@
*/
/**
- * \file htdocs/core/boxes/box_intervention.php
+ * \file htdocs/core/boxes/box_ficheinter.php
* \ingroup ficheinter
- * \brief Module de generation de l'affichage de la box ficheinter
+ * \brief Box to show last interventions
*/
include_once DOL_DOCUMENT_ROOT.'/core/boxes/modules_boxes.php';
/**
- * Class to manage the box to show last contracts
+ * Class to manage the box to show last interventions
*/
class box_ficheinter extends ModeleBoxes
{
diff --git a/htdocs/core/class/dolprintipp.class.php b/htdocs/core/class/dolprintipp.class.php
index f538b1359eb..926f5c42b42 100644
--- a/htdocs/core/class/dolprintipp.class.php
+++ b/htdocs/core/class/dolprintipp.class.php
@@ -28,7 +28,7 @@ class dolprintIPP
{
var $host;
var $port;
- var $userid;
+ var $userid; /* user login */
var $user;
var $password;
var $error;
@@ -72,7 +72,7 @@ class dolprintIPP
$ipp->setHost($this->host);
$ipp->setPort($this->port);
$ipp->setUserName($this->userid);
- //$ipp->setAuthentication($this->user,$this->password);
+ if (! empty($this->user)) $ipp->setAuthentication($this->user,$this->password);
$ipp->getPrinters();
return $ipp->available_printers;
}
@@ -95,7 +95,7 @@ class dolprintIPP
$ipp->setPort($this->port);
$ipp->setJobName($file,true);
$ipp->setUserName($this->userid);
- //$ipp->setAuthentication($this->user,$this->password);
+ if (! empty($this->user)) $ipp->setAuthentication($this->user,$this->password);
// select printer uri for module order, propal,...
$sql = 'SELECT rowid,printer_uri,copy FROM '.MAIN_DB_PREFIX.'printer_ipp WHERE module="'.$module.'"';
$result = $this->db->query($sql);
@@ -133,6 +133,7 @@ class dolprintIPP
$ipp->setHost($this->host);
$ipp->setPort($this->port);
$ipp->setUserName($this->userid);
+ if (! empty($this->user)) $ipp->setAuthentication($this->user,$this->password);
// select printer uri for module order, propal,...
$sql = 'SELECT rowid,printer_uri,printer_name FROM '.MAIN_DB_PREFIX.'printer_ipp WHERE module="'.$module.'"';
$result = $this->db->query($sql);
@@ -194,6 +195,7 @@ class dolprintIPP
$ipp->setHost($this->host);
$ipp->setPort($this->port);
$ipp->setUserName($this->userid);
+ if (! empty($this->user)) $ipp->setAuthentication($this->user,$this->password);
$ipp->setPrinterURI($uri);
$ipp->getPrinterAttributes();
return $ipp->printer_attributes;
diff --git a/htdocs/core/class/html.formcron.class.php b/htdocs/core/class/html.formcron.class.php
index b6747e04a56..bce8d9f041e 100644
--- a/htdocs/core/class/html.formcron.class.php
+++ b/htdocs/core/class/html.formcron.class.php
@@ -1,30 +1,30 @@
-*
-* 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
-* the Free Software Foundation; either version 2 of the License, or
-* (at your option) any later version.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program. If not, see .
-*/
+ *
+ * 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
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
/**
- * \file cron/class/html.formcron.class.php
-* \brief Fichier de la classe des fonctions predefinie de composants html cron
-*/
+ * \file core/class/html.formcron.class.php
+ * \brief Fichier de la classe des fonctions predefinie de composants html cron
+ */
/**
* Class to manage building of HTML components
-*/
+ */
class FormCron extends Form
{
var $db;
diff --git a/htdocs/core/lib/cron.lib.php b/htdocs/core/lib/cron.lib.php
index 4a81457afe1..630a2e2322c 100644
--- a/htdocs/core/lib/cron.lib.php
+++ b/htdocs/core/lib/cron.lib.php
@@ -17,7 +17,7 @@
*/
/**
- * \file cron/lib/cron.lib.php
+ * \file core/lib/cron.lib.php
* \brief Function for module cron
* \ingroup cron
*/
diff --git a/htdocs/core/lib/date.lib.php b/htdocs/core/lib/date.lib.php
index b7769c40a96..dc137a06514 100644
--- a/htdocs/core/lib/date.lib.php
+++ b/htdocs/core/lib/date.lib.php
@@ -140,8 +140,8 @@ function getParentCompanyTimeZoneString()
* Return parent company timezone int.
* If $conf->global->MAIN_NEW_DATE is set, we use new behaviour: All convertions take care of dayling saving time.
*
- * @param string $refdate Reference date for timezone (timezone differs on winter and summer)
- * @return int An offset in hour (+1 for Europe/Paris on winter and +2 for Europe/Paris on summer)
+ * @param string $refgmtdate Reference date for timezone (timezone differs on winter and summer)
+ * @return int An offset in hour (+1 for Europe/Paris on winter and +2 for Europe/Paris on summer)
*
function getParentCompanyTimeZoneInt($refgmtdate='now')
{
diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index ac634ca146d..515b3b1cb08 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -3684,8 +3684,8 @@ function make_substitutions($chaine,$substitutionarray)
* @param array &$substitutionarray Array substitution old value => new value value
* @param Translate $outputlangs If we want substitution from special constants, we provide a language
* @param Object $object If we want substitution from special constants, we provide data in a source object
- * @param Object/array $parameters Add more parameters (useful to pass product lines)
- * @param string $callfunc What is the name of the custom function that will be called? (default: completesubstitutionarray)
+ * @param Mixed $parameters Add more parameters (useful to pass product lines)
+ * @param string $callfunc What is the name of the custom function that will be called? (default: completesubstitutionarray)
* @return void
* @see make_substitutions
*/
diff --git a/htdocs/core/lib/json.lib.php b/htdocs/core/lib/json.lib.php
index cf86ad1fc25..ada9673fb80 100644
--- a/htdocs/core/lib/json.lib.php
+++ b/htdocs/core/lib/json.lib.php
@@ -283,14 +283,14 @@ function _unval($val)
}
/**
- * convert a string from one UTF-16 char to one UTF-8 char
+ * Convert a string from one UTF-16 char to one UTF-8 char
*
* Normally should be handled by mb_convert_encoding, but
* provides a slower PHP-only method for installations
* that lack the multibye string extension.
*
- * @param string $utf16 UTF-16 character
- * @return string UTF-8 character
+ * @param string $utf16 UTF-16 character
+ * @return string UTF-8 character
*/
function utf162utf8($utf16)
{
@@ -326,14 +326,14 @@ function utf162utf8($utf16)
}
/**
- * convert a string from one UTF-8 char to one UTF-16 char
+ * Convert a string from one UTF-8 char to one UTF-16 char
*
* Normally should be handled by mb_convert_encoding, but
* provides a slower PHP-only method for installations
* that lack the multibye string extension.
*
- * @param string $utf8 UTF-8 character
- * @return string UTF-16 character
+ * @param string $utf8 UTF-8 character
+ * @return string UTF-16 character
*/
function utf82utf16($utf8)
{
diff --git a/htdocs/core/lib/pdf.lib.php b/htdocs/core/lib/pdf.lib.php
index 7e6697d3a7b..5e4bf469a61 100644
--- a/htdocs/core/lib/pdf.lib.php
+++ b/htdocs/core/lib/pdf.lib.php
@@ -1,31 +1,31 @@
* Copyright (C) 2006 Rodolphe Quiedeville
-* Copyright (C) 2007 Patrick Raguin
-* Copyright (C) 2010-2012 Regis Houssin
-* Copyright (C) 2010 Juanjo Menent
-* Copyright (C) 2012 Christophe Battarel
-*
-* 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
-* the Free Software Foundation; either version 3 of the License, or
-* (at your option) any later version.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program. If not, see .
-* or see http://www.gnu.org/
-*/
+ * Copyright (C) 2007 Patrick Raguin
+ * Copyright (C) 2010-2012 Regis Houssin
+ * Copyright (C) 2010 Juanjo Menent
+ * Copyright (C) 2012 Christophe Battarel
+ *
+ * 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
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ * or see http://www.gnu.org/
+ */
/**
* \file htdocs/core/lib/pdf.lib.php
-* \brief Set of functions used for PDF generation
-* \ingroup core
-*/
+ * \brief Set of functions used for PDF generation
+ * \ingroup core
+ */
/**
@@ -72,7 +72,7 @@ function pdf_getFormat($outputlangs='')
* @param string $format Array(width,height). Keep empty to use default setup.
* @param string $metric Unit of format ('mm')
* @param string $pagetype 'P' or 'l'
- * @return TPDF PDF object
+ * @return TPDF PDF object
*/
function pdf_getInstance($format='',$metric='mm',$pagetype='P')
{
@@ -182,18 +182,18 @@ function pdf_getInstance($format='',$metric='mm',$pagetype='P')
/**
* writeHTMLCell
*
- * @param unknown_type $w Width
- * @param unknown_type $h Height
- * @param unknown_type $x X
- * @param unknown_type $y Y
- * @param unknown_type $html Html
- * @param unknown_type $border Border
- * @param unknown_type $ln Ln
- * @param unknown_type $fill Fill
- * @param unknown_type $reseth Reseth
- * @param unknown_type $align Align
- * @param unknown_type $autopadding Autopadding
- * @return void
+ * @param int $w Width
+ * @param int $h Height
+ * @param int $x X
+ * @param int $y Y
+ * @param string $html Html
+ * @param int $border Border
+ * @param int $ln Ln
+ * @param boolean $fill Fill
+ * @param boolean $reseth Reseth
+ * @param string $align Align
+ * @param boolean $autopadding Autopadding
+ * @return void
*/
public function writeHTMLCell($w, $h, $x, $y, $html = '', $border = 0, $ln = 0, $fill = false, $reseth = true, $align = '', $autopadding = true)
{
diff --git a/htdocs/core/modules/modCron.class.php b/htdocs/core/modules/modCron.class.php
index 33260e9c496..131ee875c44 100644
--- a/htdocs/core/modules/modCron.class.php
+++ b/htdocs/core/modules/modCron.class.php
@@ -19,7 +19,7 @@
/**
* \defgroup cron Module cron
* \brief cron module descriptor.
- * \file cron/core/modules/modCron.class.php
+ * \file htdocs/core/modules/modCron.class.php
* \ingroup cron
* \brief Description and activation file for module Jobs
*/
diff --git a/htdocs/core/modules/modHoliday.class.php b/htdocs/core/modules/modHoliday.class.php
index 36d02d3260b..984c9b51cf6 100644
--- a/htdocs/core/modules/modHoliday.class.php
+++ b/htdocs/core/modules/modHoliday.class.php
@@ -23,7 +23,7 @@
/**
* \defgroup holiday Module holiday
* \brief Module de gestion des congés
- * \file htdocs/includes/modules/modHoliday.class.php
+ * \file htdocs/core/modules/modHoliday.class.php
* \ingroup holiday
* \brief Description and activation file for module holiday
*/
diff --git a/htdocs/core/modules/modMargin.class.php b/htdocs/core/modules/modMargin.class.php
index eea8a988efc..f71fd6ed53f 100644
--- a/htdocs/core/modules/modMargin.class.php
+++ b/htdocs/core/modules/modMargin.class.php
@@ -17,7 +17,7 @@
/** \defgroup margin Module margin
* \brief Module to manage margins
- * \file htdocs/includes/modules/modMargin.class.php
+ * \file htdocs/core/modules/modMargin.class.php
* \ingroup margin
* \brief Description and activation file for module Margin
*/
diff --git a/htdocs/core/modules/modOpenSurvey.class.php b/htdocs/core/modules/modOpenSurvey.class.php
index f016b5d6cf6..8cdcf83774b 100644
--- a/htdocs/core/modules/modOpenSurvey.class.php
+++ b/htdocs/core/modules/modOpenSurvey.class.php
@@ -21,7 +21,7 @@
*/
/**
- * \file htdocs/opensurvey/core/modules/modOpenSurvey.class.php
+ * \file htdocs/core/modules/modOpenSurvey.class.php
* \ingroup opensurvey
* \brief Description and activation file for module OpenSurvey
*/
diff --git a/htdocs/core/modules/project/pdf/doc_generic_project_odt.modules.php b/htdocs/core/modules/project/pdf/doc_generic_project_odt.modules.php
index bb81a07272a..bb1252d7dc9 100644
--- a/htdocs/core/modules/project/pdf/doc_generic_project_odt.modules.php
+++ b/htdocs/core/modules/project/pdf/doc_generic_project_odt.modules.php
@@ -19,7 +19,7 @@
*/
/**
- * \file htdocs/core/modules/project/doc/doc_generic_project_odt.modules.php
+ * \file htdocs/core/modules/project/pdf/doc_generic_project_odt.modules.php
* \ingroup project
* \brief File of class to build ODT documents for third parties
*/
diff --git a/htdocs/core/modules/project/task/mod_task_simple.php b/htdocs/core/modules/project/task/mod_task_simple.php
index 25cc347bcf9..9413ff26b9c 100644
--- a/htdocs/core/modules/project/task/mod_task_simple.php
+++ b/htdocs/core/modules/project/task/mod_task_simple.php
@@ -99,7 +99,7 @@ class mod_task_simple extends ModeleNumRefTask
* Return next value
*
* @param Societe $objsoc Object third party
- * @param Task $Task Object Task
+ * @param Task $task Object Task
* @return string Value if OK, 0 if KO
*/
function getNextValue($objsoc,$task)
diff --git a/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php b/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php
index f05a324ae84..0084a951882 100644
--- a/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php
+++ b/htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php
@@ -19,7 +19,7 @@
*/
/**
- * \file htdocs/core/modules/supplier_order/mod_facture_fournisseur_cactus.php
+ * \file htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php
* \ingroup supplier invoice
* \brief File containing the Cactus Class of numbering models of suppliers invoices references
*/
diff --git a/htdocs/cron/card.php b/htdocs/cron/card.php
index bad9171d5d4..f114f0c91cd 100644
--- a/htdocs/cron/card.php
+++ b/htdocs/cron/card.php
@@ -18,7 +18,7 @@
*/
/**
- * \file cron/card.php
+ * \file htdocs/cron/card.php
* \ingroup cron
* \brief Cron Jobs Card
*/
diff --git a/htdocs/cron/info.php b/htdocs/cron/info.php
index 606ded8c660..53489d69f5a 100644
--- a/htdocs/cron/info.php
+++ b/htdocs/cron/info.php
@@ -16,8 +16,8 @@
*/
/**
- * \file /cron/cron/info.php
- * \brief Page fiche d'une operation
+ * \file htdocs/cron/info.php
+ * \brief Page of info of a cron job
*/
require '../main.inc.php';
diff --git a/htdocs/cron/list.php b/htdocs/cron/list.php
index b77a3e6d596..d7f4f89462a 100644
--- a/htdocs/cron/list.php
+++ b/htdocs/cron/list.php
@@ -18,7 +18,7 @@
*/
/**
- * \file cron/cron/list.php
+ * \file htdocs/cron/cron/list.php
* \ingroup cron
* \brief Lists Jobs
*/
diff --git a/htdocs/ecm/ajax/ecmdatabase.php b/htdocs/ecm/ajax/ecmdatabase.php
index cfdfb7fe26d..2609c402ffe 100644
--- a/htdocs/ecm/ajax/ecmdatabase.php
+++ b/htdocs/ecm/ajax/ecmdatabase.php
@@ -16,7 +16,7 @@
*/
/**
- * \file htdocs/ecm/ajax/ecmdatabases.php
+ * \file htdocs/ecm/ajax/ecmdatabase.php
* \brief File to build ecm database
*/
diff --git a/htdocs/fichinter/class/fichinter.class.php b/htdocs/fichinter/class/fichinter.class.php
index bdb195d6728..2683bea68b8 100644
--- a/htdocs/fichinter/class/fichinter.class.php
+++ b/htdocs/fichinter/class/fichinter.class.php
@@ -1,28 +1,28 @@
* Copyright (C) 2004-2010 Laurent Destailleur
-* Copyright (C) 2005-2012 Regis Houssin
-* Copyright (C) 2011-2013 Juanjo Menent
-*
-* 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
-* the Free Software Foundation; either version 3 of the License, or
-* (at your option) any later version.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program. If not, see .
-*/
+ * Copyright (C) 2005-2012 Regis Houssin
+ * Copyright (C) 2011-2013 Juanjo Menent
+ *
+ * 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
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
/**
* \file htdocs/fichinter/class/fichinter.class.php
-* \ingroup ficheinter
-* \brief Fichier de la classe des gestion des fiches interventions
-*/
+ * \ingroup ficheinter
+ * \brief Fichier de la classe des gestion des fiches interventions
+ */
require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
@@ -62,7 +62,7 @@ class Fichinter extends CommonObject
* Constructor
*
* @param DoliDB $db Database handler
- */
+ */
function __construct($db)
{
$this->db = $db;
@@ -829,36 +829,37 @@ class Fichinter extends CommonObject
/**
- * Define the label of the contract
+ * Link intervention to a contract
*
* @param User $user Object user who modify
* @param int $contractid Description
* @return int <0 if ko, >0 if ok
*/
- function set_contrat($user, $contratid)
+ function set_contrat($user, $contractid)
{
global $conf;
if ($user->rights->ficheinter->creer)
{
$sql = "UPDATE ".MAIN_DB_PREFIX."fichinter ";
- $sql.= " SET fk_contrat = '".$contratid."'";
+ $sql.= " SET fk_contrat = '".$contractid."'";
$sql.= " WHERE rowid = ".$this->id;
$sql.= " AND entity = ".$conf->entity;
- //$sql.= " AND fk_statut = 0";
+ dol_syslog("sql=".$sql);
if ($this->db->query($sql))
{
- $this->fk_contrat = $contratid;
+ $this->fk_contrat = $contractid;
return 1;
}
else
{
$this->error=$this->db->error();
- dol_syslog("Fichinter::set_contrat Erreur SQL");
+ dol_syslog($this->error, LOG_ERR);
return -1;
}
}
+ return -2;
}
/**
diff --git a/htdocs/opensurvey/adminstuds_preview.php b/htdocs/opensurvey/adminstuds_preview.php
index 3e7ba2fd7e3..62fbadda1ac 100644
--- a/htdocs/opensurvey/adminstuds_preview.php
+++ b/htdocs/opensurvey/adminstuds_preview.php
@@ -16,7 +16,7 @@
*/
/**
- * \file htdocs/opensurvey/admin_studs_preview.php
+ * \file htdocs/opensurvey/adminstuds_preview.php
* \ingroup opensurvey
* \brief Page to preview votes of a survey
*/
diff --git a/htdocs/opensurvey/class/opensurveysondage.class.php b/htdocs/opensurvey/class/opensurveysondage.class.php
index 72cb620c462..eeb1eb9068e 100644
--- a/htdocs/opensurvey/class/opensurveysondage.class.php
+++ b/htdocs/opensurvey/class/opensurveysondage.class.php
@@ -16,8 +16,8 @@
*/
/**
- * \file dev/skeletons/opensurveysondage.class.php
- * \ingroup mymodule othermodule1 othermodule2
+ * \file htdocs/opensurvey/class/opensurveysondage.class.php
+ * \ingroup opensurvey
* \brief This file is an example for a CRUD class file (Create/Read/Update/Delete)
* Initialy built by build_class_from_table on 2013-03-10 00:32
*/
diff --git a/htdocs/opensurvey/fonctions.php b/htdocs/opensurvey/fonctions.php
index f83cb029207..9dcc398fa3a 100644
--- a/htdocs/opensurvey/fonctions.php
+++ b/htdocs/opensurvey/fonctions.php
@@ -16,7 +16,7 @@
*/
/**
- * \file htdocs/opensurvey/fonction.php
+ * \file htdocs/opensurvey/fonctions.php
* \ingroup opensurvey
* \brief Functions for module
*/
diff --git a/htdocs/printipp/admin/printipp.php b/htdocs/printipp/admin/printipp.php
index bdf9078935c..08202b38f8e 100644
--- a/htdocs/printipp/admin/printipp.php
+++ b/htdocs/printipp/admin/printipp.php
@@ -17,7 +17,7 @@
/**
* \file htdocs/printipp/admin/printipp.php
- * \ingroup core
+ * \ingroup printipp
* \brief Page to setup printipp module
*/
@@ -41,6 +41,7 @@ if (!$mode) $mode='config';
/*
* Action
*/
+
if ($action == 'setvalue' && $user->admin)
{
$db->begin();
@@ -87,7 +88,7 @@ print $langs->trans("PrintIPPDesc")."
\n";
print '
';
-if ($mode=='config'&& $user->admin)
+if ($mode == 'config' && $user->admin)
{
print '';
}
-if ($mode=='test'&& $user->admin)
+if ($mode == 'test' && $user->admin)
{
print '';
$printer = new dolPrintIPP($db,$conf->global->PRINTIPP_HOST,$conf->global->PRINTIPP_PORT,$user->login,$conf->global->PRINTIPP_USER,$conf->global->PRINTIPP_PASSWORD);
@@ -180,9 +181,10 @@ if ($mode=='test'&& $user->admin)
print '| Media | ';
print 'Supported | ';
print "\n";
+
$list = $printer->getlist_available_printers();
- $var = True;
- foreach ($list as $value )
+ $var = true;
+ foreach ($list as $value)
{
$var=!$var;
$printer_det = $printer->get_printer_detail($value);
@@ -208,5 +210,6 @@ if ($mode=='test'&& $user->admin)
dol_fiche_end();
llxFooter();
+
$db->close();
?>
diff --git a/htdocs/product/stock/lib/replenishment.lib.php b/htdocs/product/stock/lib/replenishment.lib.php
index 470ca7fc2e1..ef2cbb26c57 100644
--- a/htdocs/product/stock/lib/replenishment.lib.php
+++ b/htdocs/product/stock/lib/replenishment.lib.php
@@ -17,12 +17,19 @@
*/
/**
- * \file htdocs/product/stock/replenishment.lib.php
+ * \file htdocs/product/stock/lib/replenishment.lib.php
* \ingroup produit
* \brief Contains functions used in replenish.php and replenishorders.php
*/
+
require_once DOL_DOCUMENT_ROOT . '/fourn/class/fournisseur.commande.class.php';
+/**
+ * dispatched
+ *
+ * @param int $order_id Id of order
+ * @return boolean
+ */
function dispatched($order_id)
{
global $db;
@@ -32,7 +39,8 @@ function dispatched($order_id)
$resql = $db->query($sql);
$dispatched = array();
$ordered = array();
- if($resql && $db->num_rows($resql)) {
+ if($resql && $db->num_rows($resql))
+ {
while($res = $db->fetch_object($resql))
$dispatched[] = $res;
}
@@ -47,6 +55,11 @@ function dispatched($order_id)
return $dispatched == $ordered;
}
+/**
+ * dispatchedOrders
+ *
+ * @return Ambigous
+ */
function dispatchedOrders()
{
global $db;
@@ -69,6 +82,12 @@ function dispatchedOrders()
return $res;
}
+/**
+ * ordered
+ *
+ * @param int $product_id Product id
+ * @return void
+ */
function ordered($product_id)
{
global $db, $langs, $conf;
@@ -104,6 +123,12 @@ function ordered($product_id)
}
}
+/**
+ * getProducts
+ *
+ * @param int $order_id Order id
+ * @return void
+ */
function getProducts($order_id)
{
global $db;
diff --git a/htdocs/public/cron/cron_run_jobs.php b/htdocs/public/cron/cron_run_jobs.php
index 8fc1d97d23d..1bb6ac33b33 100644
--- a/htdocs/public/cron/cron_run_jobs.php
+++ b/htdocs/public/cron/cron_run_jobs.php
@@ -18,7 +18,7 @@
*/
/**
- * \file cron/public/cron/cron_run_jobs.php
+ * \file htdocs/public/cron/cron_run_jobs.php
* \ingroup cron
* \brief Execute pendings jobs
*/
diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php
index ecd678aa97c..f71c472f0cd 100644
--- a/htdocs/theme/eldy/style.css.php
+++ b/htdocs/theme/eldy/style.css.php
@@ -1810,6 +1810,7 @@ tr.liste_total td, form.liste_total div {
border: 0px;
margin-bottom: 1px;
color: #202020;
+ min-height: 18px; /* seems to not be used */
}
.pair:hover {
diff --git a/scripts/cron/cron_run_jobs.php b/scripts/cron/cron_run_jobs.php
index 3ae5c353f42..988d0a9c7a4 100755
--- a/scripts/cron/cron_run_jobs.php
+++ b/scripts/cron/cron_run_jobs.php
@@ -19,7 +19,7 @@
*/
/**
- * \file cron/script/cron/cron_run_jobs.php
+ * \file scripts/cron/cron_run_jobs.php
* \ingroup cron
* \brief Execute pendings jobs
*/