Totally Zenned
- Join Date:
- Aug 2007
- Location:
- Gijón, Asturias, Spain
- Posts:
- 2,876
- Plugin Contributions:
- 7
Superglobals Plus
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
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"?
Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...