mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Qual: remove $_GET use.
This commit is contained in:
parent
a9cae438a6
commit
65899433fe
|
|
@ -69,15 +69,15 @@ if ($type == '0') {
|
|||
$transAreaType = $langs->trans("ProductsAndServicesArea");
|
||||
|
||||
$helpurl = '';
|
||||
if (!isset($_GET["type"])) {
|
||||
if (!GETPOSTISSET("type")) {
|
||||
$transAreaType = $langs->trans("ProductsAndServicesArea");
|
||||
$helpurl = 'EN:Module_Products|FR:Module_Produits|ES:Módulo_Productos';
|
||||
}
|
||||
if ((isset($_GET["type"]) && $_GET["type"] == 0) || !isModEnabled("service")) {
|
||||
if ((GETPOSTISSET("type") && GETPOST("type") == '0') || !isModEnabled("service")) {
|
||||
$transAreaType = $langs->trans("ProductsArea");
|
||||
$helpurl = 'EN:Module_Products|FR:Module_Produits|ES:Módulo_Productos';
|
||||
}
|
||||
if ((isset($_GET["type"]) && $_GET["type"] == 1) || !isModEnabled("product")) {
|
||||
if ((GETPOSTISSET("type") && GETPOST("type") == '1') || !isModEnabled("product")) {
|
||||
$transAreaType = $langs->trans("ServicesArea");
|
||||
$helpurl = 'EN:Module_Services_En|FR:Module_Services|ES:Módulo_Servicios';
|
||||
}
|
||||
|
|
@ -310,10 +310,10 @@ if ((isModEnabled("product") || isModEnabled("service")) && ($user->hasRight("pr
|
|||
|
||||
if ($num > 0) {
|
||||
$transRecordedType = $langs->trans("LastModifiedProductsAndServices", $max);
|
||||
if (isset($_GET["type"]) && $_GET["type"] == 0) {
|
||||
if (GETPOSTISSET("type") && GETPOST("type") == '0') {
|
||||
$transRecordedType = $langs->trans("LastRecordedProducts", $max);
|
||||
}
|
||||
if (isset($_GET["type"]) && $_GET["type"] == 1) {
|
||||
if (GETPOSTISSET("type") && GETPOST("type") == '1') {
|
||||
$transRecordedType = $langs->trans("LastRecordedServices", $max);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user