Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions html-importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,8 @@ function get_post( $path = '', $placeholder = false ) {
$filename = $this->filename;
else
$filename = basename( $path );
$my_post['post_name'] = substr( $filename,0,strrpos( $filename,'.' ) );
if($filename !== $options['index_file'])
$my_post['post_name'] = substr( $filename,0,strrpos( $filename,'.' ) );
}

// post type
Expand Down Expand Up @@ -1198,4 +1199,4 @@ function mb_strlen( $string ) {
function mb_strrpos( $haystack, $needle, $offset = 0 ) {
return strrpos( utf8_decode( $haystack ), $needle, $offset );
}
}
}