forked from ZwiiCMS-Team/ZwiiCMS
private update
This commit is contained in:
parent
b9ca6e500f
commit
51b6f4b51d
@ -27,8 +27,7 @@ class news extends common {
|
|||||||
'delete' => self::GROUP_MODERATOR,
|
'delete' => self::GROUP_MODERATOR,
|
||||||
'edit' => self::GROUP_MODERATOR,
|
'edit' => self::GROUP_MODERATOR,
|
||||||
'index' => self::GROUP_VISITOR,
|
'index' => self::GROUP_VISITOR,
|
||||||
'rss' => self::GROUP_VISITOR,
|
'rss' => self::GROUP_VISITOR
|
||||||
'update' => self::GROUP_MODERATOR
|
|
||||||
];
|
];
|
||||||
|
|
||||||
public static $news = [];
|
public static $news = [];
|
||||||
@ -66,7 +65,7 @@ class news extends common {
|
|||||||
* Mise à jour du module
|
* Mise à jour du module
|
||||||
* Appelée par les fonctions index et config
|
* Appelée par les fonctions index et config
|
||||||
*/
|
*/
|
||||||
public function update() {
|
private function update() {
|
||||||
// Insitialisation de la version
|
// Insitialisation de la version
|
||||||
if ($this->getData(['module', $this->getUrl(0), 'config', 'version']) === NULL) {
|
if ($this->getData(['module', $this->getUrl(0), 'config', 'version']) === NULL) {
|
||||||
$this->setData(['module', $this->getUrl(0), 'config', 'version','0.0']);
|
$this->setData(['module', $this->getUrl(0), 'config', 'version','0.0']);
|
||||||
|
Loading…
Reference in New Issue
Block a user