+version 2.5.3 - Hypostyle
+ + Fixed sql problems with Maria DB. Any_value is not supported there
+
version 2.5.2 - Darkmere (2020-09-12)
+ Fixed bug #8 It is possible to add empty tags and categories.
+ Fixed bug #7 Edit categories/tags. Rename and move
+ Fixed feature #3 Reduce whitespace in frontend
-
version 2.5.1 - Caves of Circe (2020-03-22)
+ Bugfix release
if (!empty($hash)) {
$queryStr = "SELECT
- any_value(`id`) as id,
- any_value(`link`) as link,
- any_value(`created`) as created,
- any_value(`updated`) as `updated`,
- any_value(`status`) as `status`,
- any_value(`description`) as description,
- any_value(`title`) as title,
- any_value(`image`) as image,
- any_value(`hash`) as hash
+ `id`,
+ `link`,
+ `created`,
+ `updated`,
+ `status`,
+ `description`,
+ `title`,
+ `image`,
+ `hash`
FROM `" . DB_PREFIX . "_link`
WHERE `hash` = '" . $this->DB->real_escape_string($hash) . "'";
$query = $this->DB->query($queryStr);
$this->_data = array();
if (!empty($hash)) {
- $queryStr = "SELECT
- any_value(`id`) as id,
- any_value(`link`) as link,
- any_value(`description`) as description,
- any_value(`title`) as title,
- any_value(`image`) as image,
- any_value(`hash`) as hash
+ $queryStr = "SELECT `id`,`link`,`description`,`title`,`image`,`hash`
FROM `" . DB_PREFIX . "_link`
WHERE `hash` = '" . $this->DB->real_escape_string($hash) . "'";
const LINK_QUERY_STATUS = 2;
- const COMBINED_SELECT_VALUES = "any_value(`id`) as id,
- any_value(`link`) as link,
- any_value(`created`) as created,
- any_value(`status`) as `status`,
- any_value(`description`) as description,
- any_value(`title`) as title,
- any_value(`image`) as image,
- any_value(`hash`) as hash,
- any_value(`tag`) as tag,
- any_value(`category`) as category,
- any_value(`categoryId`) as categoryId,
- any_value(`tagId`) as tagId";
+ const COMBINED_SELECT_VALUES = "`id`,
+ `link`,
+ `created`,
+ `status`,
+ `description`,
+ `title`,
+ `image`,
+ `hash`,
+ `tag`,
+ `category`,
+ `categoryId`,
+ `tagId`";
/**
* the database object
if($stats === true) {
$queryStr = "SELECT
COUNT(*) AS amount,
- any_value(cr.categoryid) AS categoryId
+ cr.categoryid AS categoryId
FROM `".DB_PREFIX."_categoryrelation` AS cr, `".DB_PREFIX."_link` AS t
WHERE cr.linkid = t.id";
$queryStr .= " AND ".$this->_decideLinkTypeForQuery();
}
}
- $queryStr = "SELECT
- any_value(`id`) as id,
- any_value(`name`) as name
+ $queryStr = "SELECT `id`, `name`
FROM `".DB_PREFIX."_category`
ORDER BY `name` ASC";
if(!empty($limit)) {
$statsInfo = array();
if($stats === true) {
- $queryStr = "SELECT
- COUNT(*) AS amount,
- any_value(tr.tagid) AS tagId
+ $queryStr = "SELECT COUNT(*) AS amount,
+ tr.tagid AS tagId
FROM `".DB_PREFIX."_tagrelation` AS tr, `".DB_PREFIX."_link` AS t
WHERE tr.linkid = t.id";
$queryStr .= " AND ".$this->_decideLinkTypeForQuery();
}
}
- $queryStr = "SELECT
- any_value(`id`) as id,
- any_value(`name`) as name
+ $queryStr = "SELECT `id`, `name`
FROM `".DB_PREFIX."_tag`
ORDER BY `name` ASC";
if(!empty($limit)) {
return $ret;
}
}
-