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