diff --git a/wordpress/plugins/owark/owark.php b/wordpress/plugins/owark/owark.php
index 90d9591..e08e463 100644
--- a/wordpress/plugins/owark/owark.php
+++ b/wordpress/plugins/owark/owark.php
@@ -32,7 +32,7 @@ if (!class_exists("Owark")) {
private $broken_links = array();
private $post_id = -1;
private $post_type = "";
- private $version = '0.1';
+ private $version = '0.2';
private $notices = "";
/**
@@ -97,6 +97,7 @@ if (!class_exists("Owark")) {
status varchar(20) NOT NULL DEFAULT 'to-archive',
arc_date datetime,
arc_location text,
+ encoding varchar(10),
PRIMARY KEY(`id`),
KEY `url` (`url`(150)) )";
require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
@@ -425,7 +426,9 @@ if (!class_exists("Owark")) {
from {$wpdb->prefix}owark AS owark
where id = {$id}";
$link = $wpdb->get_row($query);
+ $wpdb->flush();
+ // Find the file to read
$blog_title = get_bloginfo('name');
$home_url = home_url();
@@ -434,17 +437,6 @@ if (!class_exists("Owark")) {
$loc = '/wp-content/plugins/owark' . substr($link->arc_location, $pos);
$arc_loc = home_url() . $loc;
- echo '
-';
-
- echo "