Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 69393a6

Browse files
committedJul 13, 2015
Fixed missing definition.
1 parent 96060b3 commit 69393a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎nikola/plugins/command/import_wordpress.py

+1
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ def import_attachment(self, item, wordpress_namespace):
459459

460460
additional_metadata = item.findall('{{{0}}}postmeta'.format(wordpress_namespace))
461461
if phpserialize and additional_metadata:
462+
source_path = os.path.dirname(url)
462463
for element in additional_metadata:
463464
meta_key = element.find('{{{0}}}meta_key'.format(wordpress_namespace))
464465
if meta_key is not None and meta_key.text == '_wp_attachment_metadata':

0 commit comments

Comments
 (0)
Please sign in to comment.