Ubuntu Pastebin

Paste from dholbach at Tue, 5 Apr 2016 11:53:52 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
=== modified file 'md_importer/importer/article.py'
--- md_importer/importer/article.py     2016-03-21 13:08:22 +0000
+++ md_importer/importer/article.py     2016-04-05 11:53:33 +0000
@@ -134,8 +134,8 @@
                         in_navigation=self.advertise, template=self.template)
         if self.page.is_dirty(DEFAULT_LANG):
             self.page.publish(DEFAULT_LANG)
-            if self.page.get_public_object():
-                self.page = self.page.get_public_object()
+        if self.page.get_public_object():
+            self.page = self.page.get_public_object()
         return self.page
 
 
Download as text