diff --git a/account_manage_columns_page.php b/account_manage_columns_page.php index 8298b3b745..257aaca95d 100644 --- a/account_manage_columns_page.php +++ b/account_manage_columns_page.php @@ -25,12 +25,10 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path . 'authentication_api.php' ); - require_once( $t_core_path . 'columns_api.php' ); - require_once( $t_core_path . 'custom_field_api.php' ); - require_once( $t_core_path . 'helper_api.php' ); + require_once( 'authentication_api.php' ); + require_once( 'columns_api.php' ); + require_once( 'custom_field_api.php' ); + require_once( 'helper_api.php' ); html_page_top( lang_get( 'manage_columns_config' ) ); diff --git a/account_page.php b/account_page.php index 1b11e3b6a3..55cc81adff 100644 --- a/account_page.php +++ b/account_page.php @@ -47,9 +47,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'current_user_api.php' ); + require_once( 'current_user_api.php' ); #============ Parameters ============ # (none) diff --git a/account_prefs_inc.php b/account_prefs_inc.php index 91f65100f7..16bb5606e6 100644 --- a/account_prefs_inc.php +++ b/account_prefs_inc.php @@ -23,9 +23,8 @@ /** * MantisBT Core API's */ - $t_core_path = config_get( 'core_path' ); - require_once( $t_core_path.'user_pref_api.php' ); + require_once( 'user_pref_api.php' ); function edit_account_prefs($p_user_id = null, $p_error_if_protected = true, $p_accounts_menu = true, $p_redirect_url = '') { if ( null === $p_user_id ) { diff --git a/account_prefs_page.php b/account_prefs_page.php index ccd3468573..e34a495693 100644 --- a/account_prefs_page.php +++ b/account_prefs_page.php @@ -44,9 +44,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'current_user_api.php' ); + require_once( 'current_user_api.php' ); #============ Parameters ============ # (none) diff --git a/account_prefs_reset.php b/account_prefs_reset.php index ace51a267f..83cb324cf1 100644 --- a/account_prefs_reset.php +++ b/account_prefs_reset.php @@ -40,9 +40,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'user_pref_api.php' ); + require_once( 'user_pref_api.php' ); #============ Parameters ============ $f_user_id = gpc_get_int( 'user_id' ); diff --git a/account_prefs_update.php b/account_prefs_update.php index 2fa1c23f30..9e08c2f0aa 100644 --- a/account_prefs_update.php +++ b/account_prefs_update.php @@ -26,9 +26,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'user_pref_api.php' ); + require_once( 'user_pref_api.php' ); # helper_ensure_post(); diff --git a/account_prof_edit_page.php b/account_prof_edit_page.php index c8cadfde68..3670bfcad6 100644 --- a/account_prof_edit_page.php +++ b/account_prof_edit_page.php @@ -28,10 +28,8 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'current_user_api.php' ); - require_once( $t_core_path.'profile_api.php' ); + require_once( 'current_user_api.php' ); + require_once( 'profile_api.php' ); auth_ensure_user_authenticated(); diff --git a/account_prof_menu_page.php b/account_prof_menu_page.php index 86a439c7e0..7c9b9de2a8 100644 --- a/account_prof_menu_page.php +++ b/account_prof_menu_page.php @@ -30,15 +30,13 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - if ( isset( $g_global_profiles ) ) { $g_global_profiles = true; } else { $g_global_profiles = false; } - require_once( $t_core_path.'current_user_api.php' ); + require_once( 'current_user_api.php' ); auth_ensure_user_authenticated(); diff --git a/account_prof_update.php b/account_prof_update.php index 1b44780fc7..8d6fb5ca4c 100644 --- a/account_prof_update.php +++ b/account_prof_update.php @@ -27,9 +27,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'profile_api.php' ); + require_once( 'profile_api.php' ); form_security_validate('profile_update'); diff --git a/account_sponsor_page.php b/account_sponsor_page.php index 4844820716..89ecd64bfe 100644 --- a/account_sponsor_page.php +++ b/account_sponsor_page.php @@ -42,9 +42,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'current_user_api.php' ); + require_once( 'current_user_api.php' ); if ( config_get( 'enable_sponsorship' ) == OFF ) { trigger_error( ERROR_SPONSORSHIP_NOT_ENABLED, ERROR ); diff --git a/account_sponsor_update.php b/account_sponsor_update.php index 966235f9da..c9b0e2abb7 100644 --- a/account_sponsor_update.php +++ b/account_sponsor_update.php @@ -29,9 +29,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'email_api.php' ); + require_once( 'email_api.php' ); # helper_ensure_post(); diff --git a/account_update.php b/account_update.php index 06a03a1795..f19907d590 100644 --- a/account_update.php +++ b/account_update.php @@ -29,9 +29,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'email_api.php' ); + require_once( 'email_api.php' ); form_security_validate('account_update'); diff --git a/adm_config_report.php b/adm_config_report.php index 92eca90c12..8c5b99ae39 100644 --- a/adm_config_report.php +++ b/adm_config_report.php @@ -27,8 +27,6 @@ access_ensure_project_level( config_get( 'view_configuration_threshold' ) ); - $t_core_path = config_get( 'core_path' ); - html_page_top( lang_get( 'configuration_report' ) ); print_manage_menu( 'adm_config_report.php' ); diff --git a/adm_config_set.php b/adm_config_set.php index ea15335a3c..76f5734ef9 100644 --- a/adm_config_set.php +++ b/adm_config_set.php @@ -27,8 +27,6 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - # helper_ensure_post(); $f_user_id = gpc_get_int( 'user_id' ); diff --git a/adm_permissions_report.php b/adm_permissions_report.php index 98fa327af6..9d640358c9 100644 --- a/adm_permissions_report.php +++ b/adm_permissions_report.php @@ -28,8 +28,6 @@ access_ensure_project_level( config_get( 'view_configuration_threshold' ) ); - $t_core_path = config_get( 'core_path' ); - html_page_top( lang_get( 'permissions_summary_report' ) ); print_manage_menu( 'adm_permissions_report.php' ); diff --git a/admin/check.php b/admin/check.php index c0258043d1..5c9a59ddc1 100644 --- a/admin/check.php +++ b/admin/check.php @@ -30,10 +30,8 @@ */ require_once( dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'core.php' ); -$t_core_path = config_get_global( 'core_path' ); - -require_once( $t_core_path . 'email_api.php' ); -require_once( $t_core_path . 'database_api.php' ); +require_once( 'email_api.php' ); +require_once( 'database_api.php' ); define( 'BAD', 0 ); define( 'GOOD', 1 ); @@ -238,7 +236,7 @@ function test_database_utf8() { } - require_once( $t_core_path . 'obsolete.php' ); + require_once( 'obsolete.php' ); html_page_top( 'MantisBT Administration - Check Installation' ); diff --git a/admin/test_email.php b/admin/test_email.php index d84d464e17..4c6de4bd0f 100644 --- a/admin/test_email.php +++ b/admin/test_email.php @@ -27,8 +27,6 @@ access_ensure_global_level( ADMINISTRATOR ); -$t_core_path = config_get( 'core_path' ); - $f_mail_test = gpc_get_bool( 'mail_test' ); html_page_top(); diff --git a/admin/test_icons.php b/admin/test_icons.php index b4099c0a7f..49fe4a7d4c 100644 --- a/admin/test_icons.php +++ b/admin/test_icons.php @@ -27,8 +27,6 @@ access_ensure_global_level( ADMINISTRATOR ); -$t_core_path = config_get( 'core_path' ); - html_page_top(); foreach( $g_file_type_icons as $t_ext => $t_filename ) { diff --git a/billing_inc.php b/billing_inc.php index 80b943b8ee..f14a463b43 100644 --- a/billing_inc.php +++ b/billing_inc.php @@ -24,12 +24,10 @@ * @link http://www.mantisbt.org */ -$t_core_path = config_get( 'core_path' ); - /** * Requires bugnote API */ -require_once( $t_core_path.'bugnote_api.php' ); +require_once( 'bugnote_api.php' ); if ( !config_get('time_tracking_enabled') ) return; diff --git a/billing_page.php b/billing_page.php index 2ac2cc3526..f65425d0e8 100644 --- a/billing_page.php +++ b/billing_page.php @@ -25,7 +25,6 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); access_ensure_global_level( config_get( 'time_tracking_reporting_threshold' ) ); html_page_top( lang_get( 'time_tracking_billing_link' ) ); diff --git a/bug_actiongroup.php b/bug_actiongroup.php index 4604dd8079..76bde1fbe5 100644 --- a/bug_actiongroup.php +++ b/bug_actiongroup.php @@ -26,9 +26,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'bug_api.php' ); + require_once( 'bug_api.php' ); auth_ensure_user_authenticated(); helper_begin_long_process(); diff --git a/bug_actiongroup_attach_tags_inc.php b/bug_actiongroup_attach_tags_inc.php index c4cddea313..5caae4069b 100644 --- a/bug_actiongroup_attach_tags_inc.php +++ b/bug_actiongroup_attach_tags_inc.php @@ -21,12 +21,10 @@ * @link http://www.mantisbt.org */ - $t_core_path = config_get( 'core_path' ); - /** * Requires Tag API */ - require_once( $t_core_path . 'tag_api.php' ); + require_once( 'tag_api.php' ); /** * Prints the title for the custom action page. diff --git a/bug_actiongroup_ext.php b/bug_actiongroup_ext.php index b6d601a987..4aa9520999 100644 --- a/bug_actiongroup_ext.php +++ b/bug_actiongroup_ext.php @@ -25,10 +25,8 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path . 'bug_api.php' ); - require_once( $t_core_path . 'bug_group_action_api.php' ); + require_once( 'bug_api.php' ); + require_once( 'bug_group_action_api.php' ); auth_ensure_user_authenticated(); diff --git a/bug_actiongroup_ext_page.php b/bug_actiongroup_ext_page.php index 826e778d5a..3d05afff13 100644 --- a/bug_actiongroup_ext_page.php +++ b/bug_actiongroup_ext_page.php @@ -25,7 +25,7 @@ */ require_once( 'core.php' ); - require_once( $t_core_path.'bug_group_action_api.php' ); + require_once( 'bug_group_action_api.php' ); auth_ensure_user_authenticated(); diff --git a/bug_actiongroup_page.php b/bug_actiongroup_page.php index baf02552ef..0a54edfdda 100644 --- a/bug_actiongroup_page.php +++ b/bug_actiongroup_page.php @@ -27,7 +27,7 @@ */ require_once( 'core.php' ); - require_once( $t_core_path.'bug_group_action_api.php' ); + require_once( 'bug_group_action_api.php' ); auth_ensure_user_authenticated(); diff --git a/bug_assign.php b/bug_assign.php index 2a2878a0c7..2f1efe4d5f 100644 --- a/bug_assign.php +++ b/bug_assign.php @@ -27,9 +27,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'bug_api.php' ); + require_once( 'bug_api.php' ); # helper_ensure_post(); diff --git a/bug_assign_reporter.php b/bug_assign_reporter.php index f4825a3767..2fbf7635ef 100644 --- a/bug_assign_reporter.php +++ b/bug_assign_reporter.php @@ -27,9 +27,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'bug_api.php' ); + require_once( 'bug_api.php' ); # helper_ensure_post(); diff --git a/bug_change_status_page.php b/bug_change_status_page.php index e8e689971f..a61c5566d9 100644 --- a/bug_change_status_page.php +++ b/bug_change_status_page.php @@ -27,12 +27,10 @@ $g_allow_browser_cache = 1; require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); + require_once( 'bug_api.php' ); + require_once( 'custom_field_api.php' ); - require_once( $t_core_path.'bug_api.php' ); - require_once( $t_core_path.'custom_field_api.php' ); - - require_once( $t_core_path.'relationship_api.php' ); + require_once( 'relationship_api.php' ); ?> diff --git a/bug_view_page.php b/bug_view_page.php index ecb753faee..944a551fb9 100644 --- a/bug_view_page.php +++ b/bug_view_page.php @@ -25,17 +25,15 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'bug_api.php' ); - require_once( $t_core_path.'custom_field_api.php' ); - require_once( $t_core_path.'compress_api.php' ); - require_once( $t_core_path.'current_user_api.php' ); - require_once( $t_core_path.'file_api.php' ); - require_once( $t_core_path.'date_api.php' ); - require_once( $t_core_path.'relationship_api.php' ); - require_once( $t_core_path.'last_visited_api.php' ); - require_once( $t_core_path.'tag_api.php' ); + require_once( 'bug_api.php' ); + require_once( 'custom_field_api.php' ); + require_once( 'compress_api.php' ); + require_once( 'current_user_api.php' ); + require_once( 'file_api.php' ); + require_once( 'date_api.php' ); + require_once( 'relationship_api.php' ); + require_once( 'last_visited_api.php' ); + require_once( 'tag_api.php' ); $f_bug_id = gpc_get_int( 'bug_id' ); $f_history = gpc_get_bool( 'history', config_get( 'history_default_visible' ) ); diff --git a/bugnote_add.php b/bugnote_add.php index 4d35e5eacd..f6bc1523e9 100644 --- a/bugnote_add.php +++ b/bugnote_add.php @@ -27,10 +27,8 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'bug_api.php' ); - require_once( $t_core_path.'bugnote_api.php' ); + require_once( 'bug_api.php' ); + require_once( 'bugnote_api.php' ); # helper_ensure_post(); diff --git a/bugnote_delete.php b/bugnote_delete.php index e0aabd2672..466c27c287 100644 --- a/bugnote_delete.php +++ b/bugnote_delete.php @@ -27,11 +27,9 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'bug_api.php' ); - require_once( $t_core_path.'bugnote_api.php' ); - require_once( $t_core_path.'current_user_api.php' ); + require_once( 'bug_api.php' ); + require_once( 'bugnote_api.php' ); + require_once( 'current_user_api.php' ); # helper_ensure_post(); diff --git a/bugnote_edit_page.php b/bugnote_edit_page.php index 8405c6723c..2fa99eefd7 100644 --- a/bugnote_edit_page.php +++ b/bugnote_edit_page.php @@ -36,12 +36,10 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'bug_api.php' ); - require_once( $t_core_path.'bugnote_api.php' ); - require_once( $t_core_path.'string_api.php' ); - require_once( $t_core_path.'current_user_api.php' ); + require_once( 'bug_api.php' ); + require_once( 'bugnote_api.php' ); + require_once( 'string_api.php' ); + require_once( 'current_user_api.php' ); ?> . -$t_core_dir = config_get( 'core_path' ); -require_once( $t_core_dir . DIRECTORY_SEPARATOR . 'bug_api.php' ); -require_once( $t_core_dir . DIRECTORY_SEPARATOR . 'user_api.php' ); +require_once( 'bug_api.php' ); +require_once( 'user_api.php' ); require_once( 'Interface.php' ); class ImportXml_Issue implements ImportXml_Interface { diff --git a/print_all_bug_options_inc.php b/print_all_bug_options_inc.php index aabce2740a..a11dba8fb2 100644 --- a/print_all_bug_options_inc.php +++ b/print_all_bug_options_inc.php @@ -21,9 +21,7 @@ * @link http://www.mantisbt.org */ - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'current_user_api.php' ); + require_once( 'current_user_api.php' ); # this function only gets the field names, by appending strings function get_field_names() diff --git a/print_all_bug_options_reset.php b/print_all_bug_options_reset.php index c9dcf45f4d..961ce46cc5 100644 --- a/print_all_bug_options_reset.php +++ b/print_all_bug_options_reset.php @@ -26,10 +26,8 @@ * MantisBT Core API's */ require_once( 'core.php' ); - - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'current_user_api.php' ); + + require_once( 'current_user_api.php' ); require( 'print_all_bug_options_inc.php' ); # helper_ensure_post(); diff --git a/print_all_bug_page.php b/print_all_bug_page.php index 6d7fb9931d..8ea7432978 100644 --- a/print_all_bug_page.php +++ b/print_all_bug_page.php @@ -31,14 +31,12 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'current_user_api.php' ); - require_once( $t_core_path.'bug_api.php' ); - require_once( $t_core_path.'date_api.php' ); - require_once( $t_core_path.'icon_api.php' ); - require_once( $t_core_path.'string_api.php' ); - require_once( $t_core_path.'columns_api.php' ); + require_once( 'current_user_api.php' ); + require_once( 'bug_api.php' ); + require_once( 'date_api.php' ); + require_once( 'icon_api.php' ); + require_once( 'string_api.php' ); + require_once( 'columns_api.php' ); require_once( 'config_filter_defaults_inc.php' ); auth_ensure_user_authenticated(); diff --git a/print_all_bug_page_word.php b/print_all_bug_page_word.php index 58bb9f670b..81404d9cec 100644 --- a/print_all_bug_page_word.php +++ b/print_all_bug_page_word.php @@ -29,13 +29,11 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'current_user_api.php' ); - require_once( $t_core_path.'bug_api.php' ); - require_once( $t_core_path.'custom_field_api.php' ); - require_once( $t_core_path.'string_api.php' ); - require_once( $t_core_path.'date_api.php' ); + require_once( 'current_user_api.php' ); + require_once( 'bug_api.php' ); + require_once( 'custom_field_api.php' ); + require_once( 'string_api.php' ); + require_once( 'date_api.php' ); auth_ensure_user_authenticated(); diff --git a/print_bug_page.php b/print_bug_page.php index 8b122f9e91..6943ed5d8a 100644 --- a/print_bug_page.php +++ b/print_bug_page.php @@ -25,13 +25,11 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'bug_api.php' ); - require_once( $t_core_path.'custom_field_api.php' ); - require_once( $t_core_path.'date_api.php' ); - require_once( $t_core_path.'string_api.php' ); - require_once( $t_core_path.'last_visited_api.php' ); + require_once( 'bug_api.php' ); + require_once( 'custom_field_api.php' ); + require_once( 'date_api.php' ); + require_once( 'string_api.php' ); + require_once( 'last_visited_api.php' ); $f_bug_id = gpc_get_int( 'bug_id' ); diff --git a/print_bugnote_inc.php b/print_bugnote_inc.php index 70aa022a2b..b91abd299e 100644 --- a/print_bugnote_inc.php +++ b/print_bugnote_inc.php @@ -24,10 +24,8 @@ * @link http://www.mantisbt.org */ - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'current_user_api.php' ); - require_once( $t_core_path.'string_api.php' ); + require_once( 'current_user_api.php' ); + require_once( 'string_api.php' ); $f_bug_id = gpc_get_int( 'bug_id' ); diff --git a/proj_doc_add.php b/proj_doc_add.php index 34a4c03e7c..2e371fe861 100644 --- a/proj_doc_add.php +++ b/proj_doc_add.php @@ -25,9 +25,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'file_api.php' ); + require_once( 'file_api.php' ); # helper_ensure_post(); diff --git a/proj_doc_add_page.php b/proj_doc_add_page.php index 0c20ea4c6d..b871d69ee8 100644 --- a/proj_doc_add_page.php +++ b/proj_doc_add_page.php @@ -25,9 +25,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'file_api.php' ); + require_once( 'file_api.php' ); # Check if project documentation feature is enabled. if ( OFF == config_get( 'enable_project_documentation' ) || diff --git a/proj_doc_edit_page.php b/proj_doc_edit_page.php index a6d8119438..6c6bc4641a 100644 --- a/proj_doc_edit_page.php +++ b/proj_doc_edit_page.php @@ -25,9 +25,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'string_api.php' ); + require_once( 'string_api.php' ); # Check if project documentation feature is enabled. if ( OFF == config_get( 'enable_project_documentation' ) || diff --git a/proj_doc_page.php b/proj_doc_page.php index 5fdecb7f39..05fe7e2068 100644 --- a/proj_doc_page.php +++ b/proj_doc_page.php @@ -25,9 +25,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'string_api.php' ); + require_once( 'string_api.php' ); $f_project_id = gpc_get_int( 'project_id', helper_get_current_project() ); diff --git a/proj_doc_update.php b/proj_doc_update.php index 3b5dd33083..fddb662032 100644 --- a/proj_doc_update.php +++ b/proj_doc_update.php @@ -25,9 +25,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'file_api.php' ); + require_once( 'file_api.php' ); # helper_ensure_post(); diff --git a/project_page.php b/project_page.php index 8df665739f..42268384dc 100644 --- a/project_page.php +++ b/project_page.php @@ -25,11 +25,9 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path . 'project_api.php' ); - require_once( $t_core_path . 'last_visited_api.php' ); - require_once( $t_core_path . 'print_api.php' ); + require_once( 'project_api.php' ); + require_once( 'last_visited_api.php' ); + require_once( 'print_api.php' ); $f_project_id = gpc_get_int( 'project_id' ); diff --git a/query_delete.php b/query_delete.php index 4d7d5d230e..dab51bfb66 100644 --- a/query_delete.php +++ b/query_delete.php @@ -24,14 +24,13 @@ * MantisBT Core API's */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'compress_api.php' ); - require_once( $t_core_path.'filter_api.php' ); - require_once( $t_core_path.'current_user_api.php' ); - require_once( $t_core_path.'bug_api.php' ); - require_once( $t_core_path.'string_api.php' ); - require_once( $t_core_path.'date_api.php' ); + + require_once( 'compress_api.php' ); + require_once( 'filter_api.php' ); + require_once( 'current_user_api.php' ); + require_once( 'bug_api.php' ); + require_once( 'string_api.php' ); + require_once( 'date_api.php' ); # helper_ensure_post(); diff --git a/query_delete_page.php b/query_delete_page.php index c7a24a9f6c..c504e38fb3 100644 --- a/query_delete_page.php +++ b/query_delete_page.php @@ -24,14 +24,13 @@ * MantisBT Core API's */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - require_once( $t_core_path.'compress_api.php' ); - require_once( $t_core_path.'filter_api.php' ); - require_once( $t_core_path.'current_user_api.php' ); - require_once( $t_core_path.'bug_api.php' ); - require_once( $t_core_path.'string_api.php' ); - require_once( $t_core_path.'date_api.php' ); + require_once( 'compress_api.php' ); + require_once( 'filter_api.php' ); + require_once( 'current_user_api.php' ); + require_once( 'bug_api.php' ); + require_once( 'string_api.php' ); + require_once( 'date_api.php' ); auth_ensure_user_authenticated(); compress_enable(); diff --git a/query_store.php b/query_store.php index dd6482ffa1..a085beeeb8 100644 --- a/query_store.php +++ b/query_store.php @@ -24,14 +24,13 @@ * MantisBT Core API's */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - require_once( $t_core_path.'compress_api.php' ); - require_once( $t_core_path.'filter_api.php' ); - require_once( $t_core_path.'current_user_api.php' ); - require_once( $t_core_path.'bug_api.php' ); - require_once( $t_core_path.'string_api.php' ); - require_once( $t_core_path.'date_api.php' ); + require_once( 'compress_api.php' ); + require_once( 'filter_api.php' ); + require_once( 'current_user_api.php' ); + require_once( 'bug_api.php' ); + require_once( 'string_api.php' ); + require_once( 'date_api.php' ); # helper_ensure_post(); diff --git a/query_store_page.php b/query_store_page.php index 0377234670..da9b2be036 100644 --- a/query_store_page.php +++ b/query_store_page.php @@ -24,14 +24,13 @@ * MantisBT Core API's */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - require_once( $t_core_path.'compress_api.php' ); - require_once( $t_core_path.'filter_api.php' ); - require_once( $t_core_path.'current_user_api.php' ); - require_once( $t_core_path.'bug_api.php' ); - require_once( $t_core_path.'string_api.php' ); - require_once( $t_core_path.'date_api.php' ); + require_once( 'compress_api.php' ); + require_once( 'filter_api.php' ); + require_once( 'current_user_api.php' ); + require_once( 'bug_api.php' ); + require_once( 'string_api.php' ); + require_once( 'date_api.php' ); auth_ensure_user_authenticated(); diff --git a/query_view_page.php b/query_view_page.php index 509ca9b4ca..cc67306da5 100644 --- a/query_view_page.php +++ b/query_view_page.php @@ -24,15 +24,14 @@ * MantisBT Core API's */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'compress_api.php' ); - require_once( $t_core_path.'filter_api.php' ); - require_once( $t_core_path.'current_user_api.php' ); - require_once( $t_core_path.'bug_api.php' ); - require_once( $t_core_path.'string_api.php' ); - require_once( $t_core_path.'date_api.php' ); - require_once( $t_core_path.'rss_api.php' ); + + require_once( 'compress_api.php' ); + require_once( 'filter_api.php' ); + require_once( 'current_user_api.php' ); + require_once( 'bug_api.php' ); + require_once( 'string_api.php' ); + require_once( 'date_api.php' ); + require_once( 'rss_api.php' ); auth_ensure_user_authenticated(); diff --git a/return_dynamic_filters.php b/return_dynamic_filters.php index c2c3ea93d6..0dc6e9f894 100644 --- a/return_dynamic_filters.php +++ b/return_dynamic_filters.php @@ -24,14 +24,13 @@ * MantisBT Core API's */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'compress_api.php' ); - require_once( $t_core_path.'filter_api.php' ); - require_once( $t_core_path.'current_user_api.php' ); - require_once( $t_core_path.'bug_api.php' ); - require_once( $t_core_path.'string_api.php' ); - require_once( $t_core_path.'date_api.php' ); + + require_once( 'compress_api.php' ); + require_once( 'filter_api.php' ); + require_once( 'current_user_api.php' ); + require_once( 'bug_api.php' ); + require_once( 'string_api.php' ); + require_once( 'date_api.php' ); auth_ensure_user_authenticated(); diff --git a/roadmap_page.php b/roadmap_page.php index e599aedf19..ee7b7e9f5c 100644 --- a/roadmap_page.php +++ b/roadmap_page.php @@ -25,9 +25,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'bug_api.php' ); + require_once( 'bug_api.php' ); # Print header for the specified project version. function print_version_header( $p_version_row ) { diff --git a/scripts/send_emails.php b/scripts/send_emails.php index a320e5e33f..16722843c8 100644 --- a/scripts/send_emails.php +++ b/scripts/send_emails.php @@ -22,9 +22,7 @@ require_once( dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'core.php' ); -$t_core_path = config_get( 'core_path' ); - -require_once( $t_core_path . 'email_api.php' ); +require_once( 'email_api.php' ); # Make sure this script doesn't run via the webserver /** @todo This is a hack to detect php-cgi, there must be a better way. */ diff --git a/search.php b/search.php index de5e9cd1fa..72bcbdb0a3 100644 --- a/search.php +++ b/search.php @@ -25,10 +25,8 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path . 'compress_api.php' ); - require_once( $t_core_path . 'filter_api.php' ); + require_once( 'compress_api.php' ); + require_once( 'filter_api.php' ); auth_ensure_user_authenticated(); diff --git a/set_project.php b/set_project.php index 61b82420e0..3430d1b0e2 100644 --- a/set_project.php +++ b/set_project.php @@ -25,9 +25,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'current_user_api.php' ); + require_once( 'current_user_api.php' ); $f_project_id = gpc_get_string( 'project_id' ); $f_make_default = gpc_get_bool ( 'make_default' ); diff --git a/signup.php b/signup.php index e02356b2a3..3b128db742 100644 --- a/signup.php +++ b/signup.php @@ -25,10 +25,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'email_api.php' ); - require_once( $t_core_path . 'disposable' . DIRECTORY_SEPARATOR . 'disposable.php' ); + require_once( 'email_api.php' ); form_security_validate( 'signup' ); diff --git a/summary_graph_bycategory.php b/summary_graph_bycategory.php index c519824aa5..ccc619c190 100644 --- a/summary_graph_bycategory.php +++ b/summary_graph_bycategory.php @@ -25,9 +25,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'graph_api.php' ); + require_once( 'graph_api.php' ); access_ensure_project_level( config_get( 'view_summary_threshold' ) ); diff --git a/summary_graph_bycategory_pct.php b/summary_graph_bycategory_pct.php index f3be9248e1..a1486f0f75 100644 --- a/summary_graph_bycategory_pct.php +++ b/summary_graph_bycategory_pct.php @@ -25,9 +25,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'graph_api.php' ); + require_once( 'graph_api.php' ); access_ensure_project_level( config_get( 'view_summary_threshold' ) ); diff --git a/summary_graph_bydeveloper.php b/summary_graph_bydeveloper.php index 11e3921197..d8a751db29 100644 --- a/summary_graph_bydeveloper.php +++ b/summary_graph_bydeveloper.php @@ -25,9 +25,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'graph_api.php' ); + require_once( 'graph_api.php' ); access_ensure_project_level( config_get( 'view_summary_threshold' ) ); diff --git a/summary_graph_bypriority.php b/summary_graph_bypriority.php index 2517ab5f83..05db985e2d 100644 --- a/summary_graph_bypriority.php +++ b/summary_graph_bypriority.php @@ -25,9 +25,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'graph_api.php' ); + require_once( 'graph_api.php' ); access_ensure_project_level( config_get( 'view_summary_threshold' ) ); diff --git a/summary_graph_bypriority_mix.php b/summary_graph_bypriority_mix.php index b0046be7f6..b2d76eaa83 100644 --- a/summary_graph_bypriority_mix.php +++ b/summary_graph_bypriority_mix.php @@ -25,9 +25,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'graph_api.php' ); + require_once( 'graph_api.php' ); access_ensure_project_level( config_get( 'view_summary_threshold' ) ); diff --git a/summary_graph_bypriority_pct.php b/summary_graph_bypriority_pct.php index 1f9e382c15..3970d8fc72 100644 --- a/summary_graph_bypriority_pct.php +++ b/summary_graph_bypriority_pct.php @@ -25,9 +25,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'graph_api.php' ); + require_once( 'graph_api.php' ); access_ensure_project_level( config_get( 'view_summary_threshold' ) ); diff --git a/summary_graph_byreporter.php b/summary_graph_byreporter.php index 9ef23cc718..149580f26d 100644 --- a/summary_graph_byreporter.php +++ b/summary_graph_byreporter.php @@ -25,9 +25,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'graph_api.php' ); + require_once( 'graph_api.php' ); access_ensure_project_level( config_get( 'view_summary_threshold' ) ); diff --git a/summary_graph_byresolution.php b/summary_graph_byresolution.php index 8a0e01f988..a464aac6b2 100644 --- a/summary_graph_byresolution.php +++ b/summary_graph_byresolution.php @@ -25,9 +25,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'graph_api.php' ); + require_once( 'graph_api.php' ); access_ensure_project_level( config_get( 'view_summary_threshold' ) ); diff --git a/summary_graph_byresolution_mix.php b/summary_graph_byresolution_mix.php index 579a052179..39044f3080 100644 --- a/summary_graph_byresolution_mix.php +++ b/summary_graph_byresolution_mix.php @@ -25,9 +25,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'graph_api.php' ); + require_once( 'graph_api.php' ); access_ensure_project_level( config_get( 'view_summary_threshold' ) ); diff --git a/summary_graph_byresolution_pct.php b/summary_graph_byresolution_pct.php index b581a9196f..5d8553002d 100644 --- a/summary_graph_byresolution_pct.php +++ b/summary_graph_byresolution_pct.php @@ -25,9 +25,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'graph_api.php' ); + require_once( 'graph_api.php' ); access_ensure_project_level( config_get( 'view_summary_threshold' ) ); diff --git a/summary_graph_byseverity.php b/summary_graph_byseverity.php index f63de91762..1dd51ffa8b 100644 --- a/summary_graph_byseverity.php +++ b/summary_graph_byseverity.php @@ -25,9 +25,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'graph_api.php' ); + require_once( 'graph_api.php' ); access_ensure_project_level( config_get( 'view_summary_threshold' ) ); diff --git a/summary_graph_byseverity_mix.php b/summary_graph_byseverity_mix.php index d841ab5bc2..cd321fa3da 100644 --- a/summary_graph_byseverity_mix.php +++ b/summary_graph_byseverity_mix.php @@ -25,9 +25,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'graph_api.php' ); + require_once( 'graph_api.php' ); access_ensure_project_level( config_get( 'view_summary_threshold' ) ); diff --git a/summary_graph_byseverity_pct.php b/summary_graph_byseverity_pct.php index ed6df2ed91..bb886b99c6 100644 --- a/summary_graph_byseverity_pct.php +++ b/summary_graph_byseverity_pct.php @@ -25,9 +25,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'graph_api.php' ); + require_once( 'graph_api.php' ); access_ensure_project_level( config_get( 'view_summary_threshold' ) ); diff --git a/summary_graph_bystatus.php b/summary_graph_bystatus.php index b056e2f0dd..6fa775d90d 100644 --- a/summary_graph_bystatus.php +++ b/summary_graph_bystatus.php @@ -25,9 +25,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'graph_api.php' ); + require_once( 'graph_api.php' ); access_ensure_project_level( config_get( 'view_summary_threshold' ) ); diff --git a/summary_graph_bystatus_pct.php b/summary_graph_bystatus_pct.php index e139a67555..a4db7adea8 100644 --- a/summary_graph_bystatus_pct.php +++ b/summary_graph_bystatus_pct.php @@ -25,9 +25,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'graph_api.php' ); + require_once( 'graph_api.php' ); access_ensure_project_level( config_get( 'view_summary_threshold' ) ); diff --git a/summary_graph_cumulative_bydate.php b/summary_graph_cumulative_bydate.php index 6551065255..480e88fd59 100644 --- a/summary_graph_cumulative_bydate.php +++ b/summary_graph_cumulative_bydate.php @@ -25,9 +25,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'graph_api.php' ); + require_once( 'graph_api.php' ); access_ensure_project_level( config_get( 'view_summary_threshold' ) ); diff --git a/summary_graph_imp_category.php b/summary_graph_imp_category.php index 1a80b5d6bb..28bf93352b 100644 --- a/summary_graph_imp_category.php +++ b/summary_graph_imp_category.php @@ -26,8 +26,8 @@ * MantisBT Core API's */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - require_once( $t_core_path.'graph_api.php' ); + + require_once( 'graph_api.php' ); access_ensure_project_level( config_get( 'view_summary_threshold' ) ); diff --git a/summary_graph_imp_priority.php b/summary_graph_imp_priority.php index 9c92effc7a..5e3c80d64a 100644 --- a/summary_graph_imp_priority.php +++ b/summary_graph_imp_priority.php @@ -26,8 +26,8 @@ * MantisBT Core API's */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - require_once( $t_core_path.'graph_api.php' ); + + require_once( 'graph_api.php' ); access_ensure_project_level( config_get( 'view_summary_threshold' ) ); diff --git a/summary_graph_imp_resolution.php b/summary_graph_imp_resolution.php index 1caa6bb798..a2f04e2c4e 100644 --- a/summary_graph_imp_resolution.php +++ b/summary_graph_imp_resolution.php @@ -26,8 +26,8 @@ * MantisBT Core API's */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - require_once( $t_core_path.'graph_api.php' ); + + require_once( 'graph_api.php' ); access_ensure_project_level( config_get( 'view_summary_threshold' ) ); diff --git a/summary_graph_imp_severity.php b/summary_graph_imp_severity.php index 944c59c549..8a03ef1366 100644 --- a/summary_graph_imp_severity.php +++ b/summary_graph_imp_severity.php @@ -25,8 +25,8 @@ * MantisBT Core API's */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - require_once( $t_core_path.'graph_api.php' ); + + require_once( 'graph_api.php' ); access_ensure_project_level( config_get( 'view_summary_threshold' ) ); diff --git a/summary_graph_imp_status.php b/summary_graph_imp_status.php index 6a50bf368f..0cdc3b8ab2 100644 --- a/summary_graph_imp_status.php +++ b/summary_graph_imp_status.php @@ -25,8 +25,8 @@ * MantisBT Core API's */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - require_once( $t_core_path.'graph_api.php' ); + + require_once( 'graph_api.php' ); access_ensure_project_level( config_get( 'view_summary_threshold' ) ); diff --git a/summary_page.php b/summary_page.php index c05788ae29..dc828b85d4 100644 --- a/summary_page.php +++ b/summary_page.php @@ -25,9 +25,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'summary_api.php' ); + require_once( 'summary_api.php' ); access_ensure_project_level( config_get( 'view_summary_threshold' ) ); diff --git a/tag_attach.php b/tag_attach.php index b3740bed88..5ab62fbaa3 100644 --- a/tag_attach.php +++ b/tag_attach.php @@ -24,12 +24,10 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - /** * requires tag_api */ - require_once( $t_core_path . 'tag_api.php' ); + require_once( 'tag_api.php' ); form_security_validate( 'tag_attach' ); diff --git a/tag_create.php b/tag_create.php index 54adf85fd9..d4f817a09d 100644 --- a/tag_create.php +++ b/tag_create.php @@ -23,10 +23,10 @@ * MantisBT Core API's */ require_once( 'core.php' ); -$t_core_path = config_get( 'core_path' ); -require_once ( $t_core_path . 'html_api.php' ); -require_once ( $t_core_path . 'form_api.php' ); -require_once( $t_core_path . 'tag_api.php' ); + +require_once ( 'html_api.php' ); +require_once ( 'form_api.php' ); +require_once( 'tag_api.php' ); form_security_validate( 'tag_create' ); diff --git a/tag_delete.php b/tag_delete.php index aa860e9968..c57ea27657 100644 --- a/tag_delete.php +++ b/tag_delete.php @@ -24,12 +24,10 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - /** * requires tag_api */ - require_once( $t_core_path . 'tag_api.php' ); + require_once( 'tag_api.php' ); form_security_validate( 'tag_delete' ); diff --git a/tag_detach.php b/tag_detach.php index 93e64ce62e..5c739b8b19 100644 --- a/tag_detach.php +++ b/tag_detach.php @@ -24,12 +24,10 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - /** * requires tag_api */ - require_once( $t_core_path . 'tag_api.php' ); + require_once( 'tag_api.php' ); form_security_validate( 'tag_detach' ); diff --git a/tag_update.php b/tag_update.php index 9e548d7aa4..9edc69f4fc 100644 --- a/tag_update.php +++ b/tag_update.php @@ -24,12 +24,10 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - /** * requires tag_api */ - require_once( $t_core_path . 'tag_api.php' ); + require_once( 'tag_api.php' ); form_security_validate( 'tag_update' ); diff --git a/tag_update_page.php b/tag_update_page.php index c0fe3383a2..bc32a56298 100644 --- a/tag_update_page.php +++ b/tag_update_page.php @@ -24,16 +24,14 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - /** * requires ajax_api */ - require_once( $t_core_path . 'ajax_api.php' ); + require_once( 'ajax_api.php' ); /** * requires tag_api */ - require_once( $t_core_path . 'tag_api.php' ); + require_once( 'tag_api.php' ); compress_enable(); diff --git a/tag_view_page.php b/tag_view_page.php index 1f73465030..ba295d5ac7 100644 --- a/tag_view_page.php +++ b/tag_view_page.php @@ -24,12 +24,10 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - /** * requires tag_api */ - require_once( $t_core_path . 'tag_api.php' ); + require_once( 'tag_api.php' ); access_ensure_global_level( config_get( 'tag_view_threshold' ) ); compress_enable(); diff --git a/view.php b/view.php index 23a509d366..4b23d9c237 100644 --- a/view.php +++ b/view.php @@ -25,12 +25,10 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - /** * requires string_api */ - require_once( $t_core_path.'string_api.php' ); + require_once( 'string_api.php' ); // Copy 'id' parameter into 'bug_id' so it is found by the simple/advanced view page. $_GET['bug_id'] = gpc_get_int( 'id' ); diff --git a/view_all_bug_page.php b/view_all_bug_page.php index 8598982aff..5e5bf2b439 100644 --- a/view_all_bug_page.php +++ b/view_all_bug_page.php @@ -25,11 +25,9 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'compress_api.php' ); - require_once( $t_core_path.'filter_api.php' ); - require_once( $t_core_path.'last_visited_api.php' ); + require_once( 'compress_api.php' ); + require_once( 'filter_api.php' ); + require_once( 'last_visited_api.php' ); auth_ensure_user_authenticated(); diff --git a/view_all_inc.php b/view_all_inc.php index dfd55e6777..576fbcdcc4 100644 --- a/view_all_inc.php +++ b/view_all_inc.php @@ -21,32 +21,30 @@ * @link http://www.mantisbt.org */ - $t_core_path = config_get( 'core_path' ); - /** * requires current_user_api */ - require_once( $t_core_path.'current_user_api.php' ); + require_once( 'current_user_api.php' ); /** * requires bug_api */ - require_once( $t_core_path.'bug_api.php' ); + require_once( 'bug_api.php' ); /** * requires string_api */ - require_once( $t_core_path.'string_api.php' ); + require_once( 'string_api.php' ); /** * requires date_api */ - require_once( $t_core_path.'date_api.php' ); + require_once( 'date_api.php' ); /** * requires icon_api */ - require_once( $t_core_path.'icon_api.php' ); + require_once( 'icon_api.php' ); /** * requires columns_api */ - require_once( $t_core_path.'columns_api.php' ); + require_once( 'columns_api.php' ); $t_filter = current_user_get_bug_filter(); diff --git a/view_filters_page.php b/view_filters_page.php index bad1a3a459..d82ee38b40 100644 --- a/view_filters_page.php +++ b/view_filters_page.php @@ -24,16 +24,15 @@ * MantisBT Core API's */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'compress_api.php' ); - require_once( $t_core_path.'filter_api.php' ); - require_once( $t_core_path.'relationship_api.php' ); - require_once( $t_core_path.'current_user_api.php' ); - require_once( $t_core_path.'bug_api.php' ); - require_once( $t_core_path.'string_api.php' ); - require_once( $t_core_path.'date_api.php' ); - require_once( $t_core_path.'tag_api.php' ); + + require_once( 'compress_api.php' ); + require_once( 'filter_api.php' ); + require_once( 'relationship_api.php' ); + require_once( 'current_user_api.php' ); + require_once( 'bug_api.php' ); + require_once( 'string_api.php' ); + require_once( 'date_api.php' ); + require_once( 'tag_api.php' ); auth_ensure_user_authenticated(); diff --git a/view_user_page.php b/view_user_page.php index 997badcbb1..503ead4691 100644 --- a/view_user_page.php +++ b/view_user_page.php @@ -24,9 +24,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path.'current_user_api.php' ); + require_once( 'current_user_api.php' ); auth_ensure_user_authenticated(); diff --git a/wiki.php b/wiki.php index 6d10ec88f3..a5cbb0ba4c 100644 --- a/wiki.php +++ b/wiki.php @@ -25,9 +25,7 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path . 'wiki_api.php' ); + require_once( 'wiki_api.php' ); $f_id = gpc_get_int( 'id' ); $f_type = gpc_get_string( 'type', 'issue' ); diff --git a/xmlhttprequest.php b/xmlhttprequest.php index d2b8a47900..447411a0d6 100644 --- a/xmlhttprequest.php +++ b/xmlhttprequest.php @@ -28,10 +28,8 @@ */ require_once( 'core.php' ); - $t_core_path = config_get( 'core_path' ); - - require_once( $t_core_path . 'logging_api.php' ); - require_once( $t_core_path . 'xmlhttprequest_api.php' ); + require_once( 'logging_api.php' ); + require_once( 'xmlhttprequest_api.php' ); auth_ensure_user_authenticated();