From 356d2cd1477f4b5e84784aa878052d6ff139972f Mon Sep 17 00:00:00 2001 From: Atul Pratap Singh Date: Mon, 3 Aug 2015 23:22:53 +0530 Subject: [PATCH] Fix change link 404 not found Signed-off-by: Atul Pratap Singh --- libraries/controllers/StructureController.class.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libraries/controllers/StructureController.class.php b/libraries/controllers/StructureController.class.php index 3586582bcf..e6484cb6c0 100644 --- a/libraries/controllers/StructureController.class.php +++ b/libraries/controllers/StructureController.class.php @@ -765,7 +765,12 @@ class StructureController extends Controller /** * Runs common work */ - $this->_url_query .= '&goto=tbl_structure.php&back=tbl_structure.php'; + // set db, table references, for require_once that follows + // got to be eliminated in long run + $db = &$this->_db; + $table = &$this->_table; + require_once 'libraries/tbl_common.inc.php'; + $this->_url_query = $url_query . '&goto=tbl_structure.php&back=tbl_structure.php'; $url_params['goto'] = 'tbl_structure.php'; $url_params['back'] = 'tbl_structure.php'; @@ -1945,4 +1950,4 @@ class StructureController extends Controller ) ); } -} \ No newline at end of file +}