Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

First step to make the updater work again.

  • Loading branch information...
commit 3f425dd7752efc0241e2ab0baf0d465e23afbdf9 1 parent d2554ce
Johannes Wehner authored
View
3  Update.php
@@ -1,8 +1,5 @@
<?php
-require_once 'defaults.php';
-require_once 'conf.php';
-require_once 'textminer/Databasebuddy.inc.php';
require_once 'updater/Retriever.class.php';
require_once 'updater/Updater.class.php';
View
10 updater/Retriever.class.php
@@ -30,21 +30,21 @@ public function get_latest_updates() {
public function set_variable($name, $value) {
$sql = sprintf("REPLACE INTO variables SET name='%s', value='%s'", $name, $value);
- return DatabaseBuddy::query($sql);
+ return TaggerQueryManager::query($sql);
}
public function get_variable($name) {
$sql = sprintf("SELECT value FROM variables WHERE name='%s'", $name);
- $result = DatabaseBuddy::query($sql);
+ $result = TaggerQueryManager::query($sql);
if (!$result) {
$this->check_database_table('variables');
return TRUE;
}
- $object = mysql_fetch_object($result);
- if (!$object) {
+ $row = TaggerQueryManager::fetch($result);
+ if (!$row) {
return false;
}
- return $object->value;
+ return $object['value'];
}
public function has_update_minimal_interval_passed($url, $options) {
View
4 updater/Updater.class.php
@@ -9,10 +9,8 @@ class Updater {
function __construct($updates) {
global $conf;
- //print_r($conf);
+ $this->tagger = Tagger::getTagger();
$this->parse_updates($updates);
- //print_r($updates);
- exit;
}
public function parse_updates($updates) {
Please sign in to comment.
Something went wrong with that request. Please try again.