Make WordPress Core


Ignore:
Timestamp:
07/27/2007 09:28:01 PM (17 years ago)
Author:
markjaquith
Message:

ABSPATH already has a trailing slash. Props Nazgul. fixes #4607

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/mt.php

    r5700 r5820  
    178178    function select_authors() {
    179179        if ( $_POST['upload_type'] === 'ftp' ) {
    180             $file['file'] = ABSPATH . '/wp-content/mt-export.txt';
     180            $file['file'] = ABSPATH . 'wp-content/mt-export.txt';
    181181            if ( !file_exists($file['file']) )
    182182                $file['error'] = __('<code>mt-export.txt</code> does not exist</code>');
     
    412412        $this->id = (int) $_GET['id'];
    413413        if ( $this->id == 0 )
    414             $this->file = ABSPATH . '/wp-content/mt-export.txt';
     414            $this->file = ABSPATH . 'wp-content/mt-export.txt';
    415415        else
    416416            $this->file = get_attached_file($this->id);
Note: See TracChangeset for help on using the changeset viewer.