From a30554b1e4e5a0b6a048b4dfe12dfbeb45321c37 Mon Sep 17 00:00:00 2001 From: Dieter Adriaenssens Date: Tue, 6 Sep 2011 21:48:05 +0200 Subject: use require() instead of include() when including file unconditionally --- schema_export.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'schema_export.php') diff --git a/schema_export.php b/schema_export.php index 30384e861e..e566c7c416 100644 --- a/schema_export.php +++ b/schema_export.php @@ -21,7 +21,7 @@ $cfgRelation = PMA_getRelationsParam(); require_once './libraries/transformations.lib.php'; require_once './libraries/Index.class.php'; -include_once "./libraries/schema/Export_Relation_Schema.class.php"; +require_once "./libraries/schema/Export_Relation_Schema.class.php"; /** * get all the export options and verify @@ -38,5 +38,5 @@ $path = PMA_securePath(ucfirst($export_type)); if (!file_exists('./libraries/schema/' . $path . '_Relation_Schema.class.php')) { PMA_Export_Relation_Schema::dieSchema($_POST['chpage'],$export_type,__('File doesn\'t exist')); } -include "./libraries/schema/".$path."_Relation_Schema.class.php"; +require "./libraries/schema/".$path."_Relation_Schema.class.php"; $obj_schema = eval("new PMA_".$path."_Relation_Schema();"); -- cgit v1.2.3