define ( 'FRIENDICA_CODENAME', 'Asparagus');
define ( 'FRIENDICA_VERSION', '3.5.3-dev' );
define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
-define ( 'DB_UPDATE_VERSION', 1232 );
+define ( 'DB_UPDATE_VERSION', 1234 );
/**
* @brief Constant with a HTML line break.
array_shift($argv);
$parameters = json_encode($argv);
- $found = dba::select('workerqueue', array('id'), array('parameter' => $parameters, 'done' => false), array('limit' => 1));
+ $found = dba::exists('workerqueue', array('parameter' => $parameters, 'done' => false));
- if (!dbm::is_result($found)) {
+ if (!$found) {
dba::insert('workerqueue', array('parameter' => $parameters, 'created' => $created, 'priority' => $priority));
}
if (($temppath != "") && App::directory_usable($temppath)) {
// We have a temp path and it is usable
- return $temppath;
+ return App::realpath($temppath);
}
// We don't have a working preconfigured temp path, so we take the system path.
// Check if it is usable
if (($temppath != "") && App::directory_usable($temppath)) {
+ // Always store the real path, not the path through symlinks
+ $temppath = App::realpath($temppath);
+
// To avoid any interferences with other systems we create our own directory
$new_temppath = $temppath . "/" . $a->get_hostname();
if (!is_dir($new_temppath)) {
$itemcache = get_config('system', 'itemcache');
if (($itemcache != "") && App::directory_usable($itemcache)) {
- return $itemcache;
+ return App::realpath($itemcache);
}
$temppath = get_temppath();