A free, self-hostable news aggregator…
Fix issue #79 : possibilité de changer le nom d'un flux
Marien Fressinaud746ae4b33a2e
diff --git a/app/controllers/configureController.php b/app/controllers/configureController.phpindex 3b332de75..0d385daf9 100755--- a/app/controllers/configureController.php+++ b/app/controllers/configureController.php@@ -91,6 +91,7 @@ class configureController extends ActionController {$this->view->categories = $catDAO->listCategories ();if (Request::isPost () && $this->view->flux) {+ $name = Request::param ('name', '');$cat = Request::param ('category', 0);$path = Request::param ('path_entries', '');$priority = Request::param ('priority', 0);@@ -103,6 +104,7 @@ class configureController extends ActionController {}$values = array (+ 'name' => $name,'category' => $cat,'pathEntries' => $path,'priority' => $priority,diff --git a/app/models/Entry.php b/app/models/Entry.phpindex f49e74239..1d944b184 100755--- a/app/models/Entry.php+++ b/app/models/Entry.php@@ -239,7 +239,7 @@ class EntryDAO extends Model_pdo {return true;} else {$info = $stm->errorInfo();- Log::record ('SQL error : ' . $info[2], Log::ERROR);+ Log::record ('SQL error : ' . $info[2], Log::NOTICE);return false;}}diff --git a/app/views/configure/feed.phtml b/app/views/configure/feed.phtmlindex ad9c86d9e..650da5641 100644--- a/app/views/configure/feed.phtml+++ b/app/views/configure/feed.phtml@@ -13,6 +13,12 @@<form method="post" action="<?php echo _url ('configure', 'feed', 'id', $this->flux->id ()); ?>"><legend><?php echo Translate::t ('informations'); ?></legend>+ <div class="form-group">+ <label class="group-name" for="name"><?php echo Translate::t ('title'); ?></label>+ <div class="group-controls">+ <input type="text" name="name" id="name" value="<?php echo $this->flux->name () ; ?>" />+ </div>+ </div><div class="form-group"><label class="group-name"><?php echo Translate::t ('website_url'); ?></label><div class="group-controls">