From c5101ae5ea9d81d09c4e1bbed2b72e4ac34d7b6a Mon Sep 17 00:00:00 2001 From: Juanjo Menent Date: Thu, 7 May 2015 20:07:47 +0200 Subject: [PATCH] Code fixes --- htdocs/don/admin/donation.php | 8 ++++---- htdocs/don/admin/donation_extrafields.php | 3 ++- htdocs/loan/index.php | 3 ++- htdocs/product/stock/product.php | 2 +- htdocs/projet/admin/project.php | 3 ++- htdocs/projet/admin/project_extrafields.php | 3 ++- htdocs/projet/admin/project_task_extrafields.php | 3 ++- 7 files changed, 15 insertions(+), 10 deletions(-) diff --git a/htdocs/don/admin/donation.php b/htdocs/don/admin/donation.php index d62381e4597..3327026f028 100644 --- a/htdocs/don/admin/donation.php +++ b/htdocs/don/admin/donation.php @@ -1,6 +1,6 @@ - * Copyright (C) 2012-2013 Juanjo Menent + * Copyright (C) 2012-2015 Juanjo Menent * Copyright (C) 2013 Philippe Grand * Copyright (C) 2015 Alexandre Spangaro * @@ -199,7 +199,7 @@ $form=new Form($db); llxHeader('',$langs->trans("DonationsSetup"),'DonConfiguration'); $linkback=''.$langs->trans("BackToModuleList").''; -print_fiche_titre($langs->trans("DonationsSetup"),$linkback,title_setup); +print_fiche_titre($langs->trans("DonationsSetup"),$linkback,'title_setup'); $head = donation_admin_prepare_head(); @@ -225,8 +225,8 @@ $var=! $var; print ''; print ''; -$label = $langs->trans(AccountAccounting); -print ''; +$label = $langs->trans("AccountAccounting"); +print ''; print ''; print ''; print ''; diff --git a/htdocs/don/admin/donation_extrafields.php b/htdocs/don/admin/donation_extrafields.php index 3962ce73f8e..923fd9168a9 100644 --- a/htdocs/don/admin/donation_extrafields.php +++ b/htdocs/don/admin/donation_extrafields.php @@ -1,5 +1,6 @@ + * Copyright (C) 2015 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 @@ -61,7 +62,7 @@ $textobject=$langs->transnoentitiesnoconv("Donations"); llxHeader('',$langs->trans("DonationsSetup")); $linkback=''.$langs->trans("BackToModuleList").''; -print_fiche_titre($langs->trans("DonationsSetup"),$linkback,title_setup); +print_fiche_titre($langs->trans("DonationsSetup"),$linkback,'title_setup'); $head = donation_admin_prepare_head(); diff --git a/htdocs/loan/index.php b/htdocs/loan/index.php index 557d1fa5e00..82ff98f0529 100644 --- a/htdocs/loan/index.php +++ b/htdocs/loan/index.php @@ -1,6 +1,7 @@ * Copyright (C) 2015 Frederic France + * Copyright (C) 2015 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 @@ -31,7 +32,7 @@ $langs->load("banks"); $langs->load("bills"); // Security check -$socid = GETPOST('socid', int); +$socid = GETPOST('socid', 'int'); if ($user->societe_id) $socid=$user->societe_id; $result = restrictedArea($user, 'loan', '', '', ''); diff --git a/htdocs/product/stock/product.php b/htdocs/product/stock/product.php index dfa94910625..188eb8d8e1a 100644 --- a/htdocs/product/stock/product.php +++ b/htdocs/product/stock/product.php @@ -741,7 +741,7 @@ if ($resql) if ($details<0) dol_print_error($db); foreach ($details as $pdluo) { - if ( $action == 'editline' && GETPOST('lineid',int)==$pdluo->id ) + if ( $action == 'editline' && GETPOST('lineid','int')==$pdluo->id ) { //Current line edit print "\n".''; print '
'; diff --git a/htdocs/projet/admin/project.php b/htdocs/projet/admin/project.php index 9a8c19690ec..2e0e9216687 100644 --- a/htdocs/projet/admin/project.php +++ b/htdocs/projet/admin/project.php @@ -4,6 +4,7 @@ * Copyright (C) 2011-2012 Juanjo Menent * Copyright (C) 2011-2013 Philippe Grand * Copyright (C) 2013 Florian Henry + * Copyright (C) 2015 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 @@ -292,7 +293,7 @@ llxHeader("",$langs->trans("ProjectsSetup")); $form=new Form($db); $linkback=''.$langs->trans("BackToModuleList").''; -print_fiche_titre($langs->trans("ProjectsSetup"),$linkback,title_setup); +print_fiche_titre($langs->trans("ProjectsSetup"),$linkback,'title_setup'); $head=project_admin_prepare_head(); diff --git a/htdocs/projet/admin/project_extrafields.php b/htdocs/projet/admin/project_extrafields.php index a3118caf438..7a18dc9230f 100644 --- a/htdocs/projet/admin/project_extrafields.php +++ b/htdocs/projet/admin/project_extrafields.php @@ -4,6 +4,7 @@ * Copyright (C) 2004-2012 Laurent Destailleur * Copyright (C) 2012 Regis Houssin * Copyright (C) 2013 Florian Henry + * Copyright (C) 2015 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 @@ -64,7 +65,7 @@ $textobject=$langs->transnoentitiesnoconv("Project"); llxHeader("",$langs->trans("ProjectsSetup")); $linkback=''.$langs->trans("BackToModuleList").''; -print_fiche_titre($langs->trans("ProjectsSetup"),$linkback,title_setup); +print_fiche_titre($langs->trans("ProjectsSetup"),$linkback,'title_setup'); $head = project_admin_prepare_head(); diff --git a/htdocs/projet/admin/project_task_extrafields.php b/htdocs/projet/admin/project_task_extrafields.php index bdb2ce75c3d..b64bcabab89 100644 --- a/htdocs/projet/admin/project_task_extrafields.php +++ b/htdocs/projet/admin/project_task_extrafields.php @@ -4,6 +4,7 @@ * Copyright (C) 2004-2012 Laurent Destailleur * Copyright (C) 2012 Regis Houssin * Copyright (C) 2013 Florian Henry + * Copyright (C) 2015 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 @@ -64,7 +65,7 @@ $textobject=$langs->transnoentitiesnoconv("Project"); llxHeader("",$langs->trans("ProjectsSetup")); $linkback=''.$langs->trans("BackToModuleList").''; -print_fiche_titre($langs->trans("ProjectsSetup"),$linkback,title_setup); +print_fiche_titre($langs->trans("ProjectsSetup"),$linkback,'title_setup'); $head = project_admin_prepare_head();