aboutsummaryrefslogtreecommitdiff
path: root/app/Models/CategoryDAO.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2025-11-04 12:49:21 +0100
committerGravatar GitHub <noreply@github.com> 2025-11-04 12:49:21 +0100
commitb6c63d223931382aae84dc6d394cdd1bb58121bc (patch)
treef512ea0f11873f89740cb7692442d11b26d59ee3 /app/Models/CategoryDAO.php
parent7d4854a0a4f5665db599f18c34035786465639f3 (diff)
Better transitions between groups of articles (#8174)
fix https://github.com/FreshRSS/FreshRSS/issues/7520 fix https://github.com/FreshRSS/FreshRSS/issues/8168 fix https://github.com/FreshRSS/FreshRSS/discussions/8172
Diffstat (limited to 'app/Models/CategoryDAO.php')
-rw-r--r--app/Models/CategoryDAO.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Models/CategoryDAO.php b/app/Models/CategoryDAO.php
index e2fc825ac..e03f69016 100644
--- a/app/Models/CategoryDAO.php
+++ b/app/Models/CategoryDAO.php
@@ -4,6 +4,7 @@ declare(strict_types=1);
class FreshRSS_CategoryDAO extends Minz_ModelPdo {
public const DEFAULTCATEGORYID = 1;
+ public const DEFAULT_CATEGORY_NAME = 'Uncategorized';
public function sqlResetSequence(): bool {
return true; // Nothing to do for MySQL
@@ -14,7 +15,7 @@ class FreshRSS_CategoryDAO extends Minz_ModelPdo {
$stm = $this->pdo->prepare('UPDATE `_category` SET name = :name WHERE id = :id');
if ($stm !== false) {
$stm->bindValue(':id', self::DEFAULTCATEGORYID, PDO::PARAM_INT);
- $stm->bindValue(':name', 'Uncategorized');
+ $stm->bindValue(':name', self::DEFAULT_CATEGORY_NAME);
}
return $stm !== false && $stm->execute();
}