$msg = null;
// Load the required file(s)
-require ("inc/config.php");
+require("inc/config.php");
// Is the "beg" extension active?
if (!EXT_IS_ACTIVE("beg")) {
// Include config-depending template
LOAD_TEMPLATE("beg_pay_code_".strtolower($_CONFIG['beg_pay_mode']), false, $content);
- } elseif (!$pay) {
+ } elseif ((!$pay) && (!defined('__BEG_MSG'))) {
// Cannot pay! :-(
define('__BEG_MSG', LOAD_TEMPLATE("beg_failed", true));
}