From cf8b0839f7ae0e7a72eda70547e78fc206247671 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Tue, 18 Jun 2013 08:04:36 +0200 Subject: [PATCH] fix content extraction import --- src/stapibas/Content/Extractor.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/stapibas/Content/Extractor.php b/src/stapibas/Content/Extractor.php index c54344b..63e3167 100644 --- a/src/stapibas/Content/Extractor.php +++ b/src/stapibas/Content/Extractor.php @@ -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; } -- 2.30.2