svalavuo 4 dní pred
rodič
commit
76fe1a1bc4

+ 2 - 1
admin/ajax_import_test.php

@@ -116,7 +116,8 @@ try {
             
             sendResponse(true, 'Comments imported', [
                 'step' => $step,
-                'result' => $result
+                'result' => $result,
+                'logs' => $importer->getImportLog()
             ]);
             break;
             

+ 4 - 0
includes/wordpress_import.php

@@ -605,6 +605,10 @@ class WordPressImport {
         ];
     }
     
+    public function getImportLog() {
+        return $this->importLog;
+    }
+    
     /**
      * Get statistics methods
      */