File modules/cms/action/language/LanguageSetdefaultAction.class.php

Last commit: Thu Nov 19 14:49:58 2020 +0100	Jan Dankert	Fix: Action::addNotice() is replaced by Action::addNoticeFor()
1 <?php 2 namespace cms\action\language; 3 use cms\action\Action; 4 use cms\action\LanguageAction; 5 use cms\action\Method; 6 use language\Messages; 7 8 9 class LanguageSetdefaultAction extends LanguageAction implements Method { 10 public function view() { 11 } 12 public function post() { 13 $this->language->setDefault(); 14 15 $this->addNoticeFor($this->language,Messages::DONE); 16 } 17 }
Download modules/cms/action/language/LanguageSetdefaultAction.class.php
History Thu, 19 Nov 2020 14:49:58 +0100 Jan Dankert Fix: Action::addNotice() is replaced by Action::addNoticeFor() Tue, 17 Nov 2020 23:51:00 +0100 Jan Dankert Refactoring: Every Actionmethod has now its own class.