fix content extraction import
[stapibas.git] / src / stapibas / Content / Extractor.php
index c54344be9f7705bb79a2d020e02a39b91ed7de6d..63e3167768490a5d221db603617334e1ceaac47d 100644 (file)
@@ -48,7 +48,7 @@ class Content_Extractor
 
         //delete old content
         $this->db->exec(
-            'DELETE FROM rboomarks WHERE'
+            'DELETE FROM rbookmarks WHERE'
             . ' rb_pc_id = ' . $this->db->quote($contentRow->pc_id)
         );
         $this->db->exec(
@@ -86,7 +86,6 @@ class Content_Extractor
         $data = $ce->extract($doc, $contentRow->p_source, $contentRow->p_target);
         if ($data !== null) {
             $this->log->info('Link found');
-            var_dump($data);
             $this->db->exec(
                 'INSERT INTO rlinks SET'
                 . '  rl_pc_id = ' . $this->db->quote($contentRow->pc_id)
@@ -96,7 +95,7 @@ class Content_Extractor
                 . ', rl_author_name = ' . $this->db->quote($data['author_name'])
                 . ', rl_author_url = ' . $this->db->quote($data['author_url'])
                 . ', rl_author_image = ' . $this->db->quote($data['author_image'])
-                . ', rc_updated = NOW()'
+                . ', rl_updated = NOW()'
             );
             return;
         }