Is there a reason why there is an extra constant used in the admin side?
In
admin
/includes/functions/extra_functions/superglobals.php
there is this constant defined:
define('SHOW_SUPERGLOBALS_FROM_ADMIN', TRUE);
this is only used in the main function in
catalog
includes\functions\extra_functions\superglobals.php
PHP Code:
if (defined('SHOW_SUPERGLOBALS_FROM_ADMIN')){
// the script is being called from the admin
if((SHOW_SUPERGLOBALS_ADMIN == 'true').......
SHOW_SUPERGLOBALS_ADMIN is the constant used in the administration page. Why not just use that one and remove the overall "if"?
Bookmarks