diff --git a/config/config.php b/config/config.php index e79484e..f934bf5 100644 --- a/config/config.php +++ b/config/config.php @@ -14,7 +14,7 @@ class Config extends \Ilch\Config\Install { public $config = [ 'key' => 'radiohoerercharts', - 'version' => '1.8.1', + 'version' => '1.8.2', 'icon_small' => 'fa-solid fa-list-ol', 'author' => 'Reilard, Dennis alias hhunderter', 'link' => 'https://github.com/hhunderter/radiohoerercharts', @@ -351,11 +351,18 @@ public function getUpdate(string $installedVersion): string } // no break case "1.8.1": + // update zu 1.8.2 + /* + * Captcha Fehler behoben + * Neue einträge (Backend) automatisch Freigeben + */ + // no break + case "1.8.2": // update zu 1.?.? /* */ // no break } - return 'Update function executed.'; + return '"' . $this->config['key'] . '" Update-function executed.'; } } diff --git a/controllers/Index.php b/controllers/Index.php index a2ffac8..b779948 100644 --- a/controllers/Index.php +++ b/controllers/Index.php @@ -177,9 +177,7 @@ public function treatAction() ->setVotes(0) ->setDateCreate($datenow); - $id = $hoererchartssuggestionMapper->save($hoererchartsModel); - - $this->addMessage($id); + $hoererchartssuggestionMapper->save($hoererchartsModel); $this->redirect() ->withMessage('saveSuccess') diff --git a/controllers/admin/Index.php b/controllers/admin/Index.php index e2539ee..3590c90 100644 --- a/controllers/admin/Index.php +++ b/controllers/admin/Index.php @@ -117,7 +117,6 @@ public function indexAction() foreach ($this->getRequest()->getPost('check_entries') as $entryId) { $hoererchartsModel = $hoererchartssuggestionMapper->getEntryById($entryId); $hoererchartsModel->setId(0); - $hoererchartsModel->setSetFree(0); $hoererchartsMapper->save($hoererchartsModel); $hoererchartssuggestionMapper->delete($entryId); } @@ -347,7 +346,6 @@ public function suggestionenableAction() if ($this->getRequest()->isSecure()) { $hoererchartsModel = $hoererchartssuggestionMapper->getEntryById($this->getRequest()->getParam('id')); $hoererchartsModel->setId(0); - $hoererchartsModel->setSetFree(0); $hoererchartsMapper->save($hoererchartsModel); $hoererchartssuggestionMapper->delete($this->getRequest()->getParam('id')); diff --git a/models/HoererCharts.php b/models/HoererCharts.php index 8632b31..adb52a9 100644 --- a/models/HoererCharts.php +++ b/models/HoererCharts.php @@ -21,7 +21,7 @@ class HoererCharts extends \Ilch\Model * * @var bool */ - protected $setfree = false; + protected $setfree = true; /** * The Interpret. diff --git a/views/index/treat.php b/views/index/treat.php index 6f46400..74c6cbb 100644 --- a/views/index/treat.php +++ b/views/index/treat.php @@ -38,33 +38,23 @@ value="escape($this->originalInput('songtitel')) ?>" /> - -
- -
- getCaptchaField() ?> -
-
- - getCaptcha($this) ?> - -
-
- setForm('rhcForm')->getCaptcha($this, 'addButton'); - } else { - echo $this->getSaveBar('addButton'); - } + + get('defaultcaptcha')) : ?> + getCaptcha($this) ?> + +
+
+ setForm('rhcForm')->getCaptcha($this, 'addButton'); } else { echo $this->getSaveBar('addButton'); } - ?> -
+ } else { + echo $this->getSaveBar('addButton'); + } + ?>
- - getSaveBar('addButton') ?> +