diff options
| author | 2024-01-28 22:16:24 +0100 | |
|---|---|---|
| committer | 2024-01-28 22:16:24 +0100 | |
| commit | 6228f959f7ff8d459aa5bc253d225c7e7f716165 (patch) | |
| tree | b361dc2b13bc40a90437cfa765e3e38f8250aa0c /app/views | |
| parent | d36e11085d4caabac220d3bef48dbc99614ed61e (diff) | |
Fix default category name (#6073)
fix https://github.com/FreshRSS/FreshRSS/issues/6071
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/helpers/category/update.phtml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/helpers/category/update.phtml b/app/views/helpers/category/update.phtml index 36c0abfe8..b3f92b449 100644 --- a/app/views/helpers/category/update.phtml +++ b/app/views/helpers/category/update.phtml @@ -22,9 +22,9 @@ <div class="form-group"> <label class="group-name" for="name"><?= _t('sub.category.title') ?></label> <div class="group-controls"> - <input type="text" name="name" id="name" value="<?= $this->category->name() ?>" <?php + <input type="text" name="name" id="name" value="<?= $this->category->name() ?>" <?= //Disallow changing the name of the default category - echo $this->category->id() == FreshRSS_CategoryDAO::DEFAULTCATEGORYID ? 'disabled="disabled"' : ''; + $this->category->id() === FreshRSS_CategoryDAO::DEFAULTCATEGORYID ? 'readonly="readonly"' : '' ?> /> </div> </div> |
