diff --git a/admin/move_attachments_page.php b/admin/move_attachments_page.php
index d9b1e4c9f5..48ff168c08 100644
--- a/admin/move_attachments_page.php
+++ b/admin/move_attachments_page.php
@@ -23,7 +23,7 @@
* @link http://www.mantisbt.org
*/
-require_once( dirname( dirname( __FILE__ ) ) . '/core.php' );
+require_once( dirname( __FILE__, 2 ) . '/core.php' );
access_ensure_global_level( config_get_global( 'admin_site_threshold' ) );
@@ -120,13 +120,16 @@ function get_attachment_stats( $p_file_type, $p_in_db ) {
@@ -147,9 +150,11 @@ function get_attachment_stats( $p_file_type, $p_in_db ) {
$t_upload_method = config_get( 'file_upload_method', null, ALL_USERS, $t_id );
if( $t_upload_method == DISK ) {
$t_method = 'Disk';
+ $t_target = 'disk';
} else {
# Must be DATABASE
$t_method = 'Database';
+ $t_target = 'db';
}
$t_file_path = $t_project['file_path'];
@@ -165,20 +170,26 @@ function get_attachment_stats( $p_file_type, $p_in_db ) {
echo 'Project name
- File Path
- Disk
- Database
- Attachments
- Storage
- To Disk
- To Database
+ File Path
+ Disk
+ Database
+ Attachments
+
+ Storage
+
+ To Disk
+ To Database