Remove extra require statements
This commit is contained in:
parent
d8613f0baa
commit
c7349c4748
@ -358,7 +358,6 @@ switch ($VARS['action']) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "getreceipt":
|
case "getreceipt":
|
||||||
require_once __DIR__ . "/lib/generatereceipt.php";
|
|
||||||
$format = "html";
|
$format = "html";
|
||||||
$width = 48;
|
$width = 48;
|
||||||
if (isset($VARS['width']) && preg_match("/[0-9]+/", $VARS['width']) && (int) $VARS['width'] > 0) {
|
if (isset($VARS['width']) && preg_match("/[0-9]+/", $VARS['width']) && (int) $VARS['width'] > 0) {
|
||||||
@ -694,7 +693,6 @@ switch ($VARS['action']) {
|
|||||||
|
|
||||||
returnToSender("register_saved");
|
returnToSender("register_saved");
|
||||||
case "xreport":
|
case "xreport":
|
||||||
require_once __DIR__ . "/lib/generatereceipt.php";
|
|
||||||
$format = "html";
|
$format = "html";
|
||||||
$width = 64;
|
$width = 64;
|
||||||
if (isset($VARS['width']) && preg_match("/[0-9]+/", $VARS['width']) && (int) $VARS['width'] > 0) {
|
if (isset($VARS['width']) && preg_match("/[0-9]+/", $VARS['width']) && (int) $VARS['width'] > 0) {
|
||||||
@ -713,7 +711,6 @@ switch ($VARS['action']) {
|
|||||||
exit(GenerateReceipt::outputReceipt($receipt, $format, $width, "X Report"));
|
exit(GenerateReceipt::outputReceipt($receipt, $format, $width, "X Report"));
|
||||||
break;
|
break;
|
||||||
case "zreport":
|
case "zreport":
|
||||||
require_once __DIR__ . "/lib/generatereceipt.php";
|
|
||||||
$format = "html";
|
$format = "html";
|
||||||
$width = 64;
|
$width = 64;
|
||||||
if (isset($VARS['width']) && preg_match("/[0-9]+/", $VARS['width']) && (int) $VARS['width'] > 0) {
|
if (isset($VARS['width']) && preg_match("/[0-9]+/", $VARS['width']) && (int) $VARS['width'] > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user