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 /tbl_create.php | |
parent | ff56cbf5d901a34bc3884254f5f56ce2d2ee0ab2 (diff) |
use include() instead of require() when including file conditionally
Diffstat (limited to 'tbl_create.php')
-rw-r--r-- | tbl_create.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tbl_create.php b/tbl_create.php index fb9c72fc64..e60c172450 100644 --- a/tbl_create.php +++ b/tbl_create.php @@ -197,7 +197,7 @@ if (isset($_REQUEST['do_save_data'])) { if ($result) { // If comments were sent, enable relation stuff - require_once './libraries/transformations.lib.php'; + include_once './libraries/transformations.lib.php'; // Update comment table for mime types [MIME] if (isset($_REQUEST['field_mimetype']) @@ -314,13 +314,13 @@ if (isset($_REQUEST['do_save_data'])) { // read table info on this newly created table, in case // the next page is Structure $reread_info = true; - require './libraries/tbl_info.inc.php'; + include './libraries/tbl_info.inc.php'; // do not switch to sql.php - as there is no row to be displayed on a new table if ($cfg['DefaultTabTable'] === 'sql.php') { - require './tbl_structure.php'; + include './tbl_structure.php'; } else { - require './' . $cfg['DefaultTabTable']; + include './' . $cfg['DefaultTabTable']; } exit; } else { |