Skip to content

Commit

Permalink
Tweaked Wordpress importer
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmerfield committed Mar 12, 2019
1 parent ac8e3c6 commit 6dd9cf9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/dashboard/routes/importer/helper/determine_path.js
Expand Up @@ -6,7 +6,7 @@ module.exports = function(title, page, draft, dateStamp, slug) {
var relative_path_without_extension;
var name;

slug = slugify(title || slug || 'untitled');
slug = slugify(title || slug || dateStamp.toString() || 'untitled');
name = name || slug;

name = name.split("/").join("-");
Expand Down
Expand Up @@ -26,7 +26,7 @@ module.exports = function(item, output_directory, callback) {
helper.write
],
function(err, result) {
if (err) console.error(error);
if (err) console.error(err);
callback(null);
}
);
Expand Down

0 comments on commit 6dd9cf9

Please sign in to comment.