diff options
author | Dieter Adriaenssens <ruleant@users.sourceforge.net> | 2011-09-23 02:46:58 +0400 |
---|---|---|
committer | Dieter Adriaenssens <ruleant@users.sourceforge.net> | 2011-09-23 02:46:58 +0400 |
commit | ac088aaee0194f28f435b63b978db96426cda642 (patch) | |
tree | 24dbd598cce8c2d16a381f5c2cae1d8354057b3c /libraries/rte | |
parent | ff56cbf5d901a34bc3884254f5f56ce2d2ee0ab2 (diff) |
use include() instead of require() when including file conditionally
Diffstat (limited to 'libraries/rte')
-rw-r--r-- | libraries/rte/rte_main.inc.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libraries/rte/rte_main.inc.php b/libraries/rte/rte_main.inc.php index 988cf6b86c..796467ea5e 100644 --- a/libraries/rte/rte_main.inc.php +++ b/libraries/rte/rte_main.inc.php @@ -23,12 +23,12 @@ if ($GLOBALS['is_ajax_request'] != true) { * Displays the header and tabs */ if (! empty($table) && in_array($table, PMA_DBI_get_tables($db))) { - require_once './libraries/tbl_common.php'; - require_once './libraries/tbl_links.inc.php'; + include_once './libraries/tbl_common.php'; + include_once './libraries/tbl_links.inc.php'; } else { $table = ''; - require_once './libraries/db_common.inc.php'; - require_once './libraries/db_info.inc.php'; + include_once './libraries/db_common.inc.php'; + include_once './libraries/db_info.inc.php'; } } else { /** @@ -92,7 +92,7 @@ case 'EVN': * Display the footer, if necessary */ if ($GLOBALS['is_ajax_request'] != true) { - require './libraries/footer.inc.php'; + include './libraries/footer.inc.php'; } ?> |