Skip to content
Snippets Groups Projects
Commit 1df18f1e authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Function GETPOST not found

parent 4d379e57
No related branches found
No related tags found
No related merge requests found
......@@ -29,16 +29,16 @@
define("NOLOGIN",1); // This means this output page does not require to be logged.
define("NOCSRFCHECK",1); // We accept to go on this page from external web site.
// For MultiCompany module. This should be useless. Because entity must be retreive from object ref and not from url.
$entity=GETPOST('entity')?GETPOST('entity','int'):1;
if (is_int($entity)) define("DOLENTITY", $entity);
require '../../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/paypal/lib/paypal.lib.php';
require_once DOL_DOCUMENT_ROOT.'/paypal/lib/paypalfunctions.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
// For MultiCompany module.
// TODO This should be useless. Because entity must be retreive from object ref and not from url.
$entity=GETPOST('entity')?GETPOST('entity','int'):1;
if (is_int($entity)) define("DOLENTITY", $entity);
// Security check
if (empty($conf->paypal->enabled)) accessforbidden('',1,1,1);
......
......@@ -29,16 +29,16 @@
define("NOLOGIN",1); // This means this output page does not require to be logged.
define("NOCSRFCHECK",1); // We accept to go on this page from external web site.
// For MultiCompany module. This should be useless. Because entity must be retreive from object ref and not from url.
$entity=GETPOST('entity')?GETPOST('entity','int'):1;
if (is_int($entity)) define("DOLENTITY", $entity);
require '../../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/paypal/lib/paypal.lib.php';
require_once DOL_DOCUMENT_ROOT.'/paypal/lib/paypalfunctions.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
// For MultiCompany module
// TODO This should be useless. Because entity must be retreive from object ref and not from url.
$entity=GETPOST('entity')?GETPOST('entity','int'):1;
if (is_int($entity)) define("DOLENTITY", $entity);
// Security check
if (empty($conf->paypal->enabled)) accessforbidden('',1,1,1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment