forked from ZwiiCMS-Team/ZwiiCMS
[10.0.029.dev] suppression de warning lors d el'installation - faviconDark
This commit is contained in:
parent
e5a0fa0066
commit
1032877b50
@ -34,7 +34,7 @@ class common {
|
|||||||
const TEMP_DIR = 'site/tmp/';
|
const TEMP_DIR = 'site/tmp/';
|
||||||
|
|
||||||
// Numéro de version
|
// Numéro de version
|
||||||
const ZWII_VERSION = '10.0.028.dev';
|
const ZWII_VERSION = '10.0.029.dev';
|
||||||
|
|
||||||
public static $actions = [];
|
public static $actions = [];
|
||||||
public static $coreModuleIds = [
|
public static $coreModuleIds = [
|
||||||
@ -1061,6 +1061,7 @@ class common {
|
|||||||
}
|
}
|
||||||
// Version 10.0.00
|
// Version 10.0.00
|
||||||
if($this->getData(['core', 'dataVersion']) < 10000) {
|
if($this->getData(['core', 'dataVersion']) < 10000) {
|
||||||
|
$this->setData(['config', 'faviconDark','faviconDark.ico']);
|
||||||
$this->setData(['core', 'dataVersion', 10000]);
|
$this->setData(['core', 'dataVersion', 10000]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -51,13 +51,19 @@ class install extends common {
|
|||||||
$userLastname = $this->getInput('installLastname', helper::FILTER_STRING_SHORT, true);
|
$userLastname = $this->getInput('installLastname', helper::FILTER_STRING_SHORT, true);
|
||||||
$userMail = $this->getInput('installMail', helper::FILTER_MAIL, true);
|
$userMail = $this->getInput('installMail', helper::FILTER_MAIL, true);
|
||||||
$userId = $this->getInput('installId', helper::FILTER_ID, true);
|
$userId = $this->getInput('installId', helper::FILTER_ID, true);
|
||||||
// Copie la bannière par défaut
|
// Bannière par défaut
|
||||||
mkdir(self::FILE_DIR.'source/banner/');
|
// Créer les dossiers
|
||||||
|
if (!is_dir(self::FILE_DIR.'source/banner/')) {
|
||||||
|
mkdir(self::FILE_DIR.'source/banner/');}
|
||||||
|
if (!is_dir(self::FILE_DIR.'thumb/banner/')) {
|
||||||
mkdir(self::FILE_DIR.'thumb/banner/');
|
mkdir(self::FILE_DIR.'thumb/banner/');
|
||||||
|
}
|
||||||
|
// Copier les fichiers
|
||||||
copy('core/module/install/ressource/file/source/banner960.jpg',self::FILE_DIR.'source/banner/banner960.jpg');
|
copy('core/module/install/ressource/file/source/banner960.jpg',self::FILE_DIR.'source/banner/banner960.jpg');
|
||||||
copy('core/module/install/ressource/file/thumb/banner960.jpg',self::FILE_DIR.'thumb/banner/banner960.jpg');
|
copy('core/module/install/ressource/file/thumb/banner960.jpg',self::FILE_DIR.'thumb/banner/banner960.jpg');
|
||||||
// Copie l'icône de favori
|
// Copie des icônes
|
||||||
copy('core/module/install/ressource/file/source/favicon.ico',self::FILE_DIR.'source/favicon.ico');
|
copy('core/module/install/ressource/file/source/favicon.ico',self::FILE_DIR.'source/favicon.ico');
|
||||||
|
copy('core/module/install/ressource/file/source/faviconDark.ico',self::FILE_DIR.'source/faviconDark.ico');
|
||||||
// Configure certaines données par défaut
|
// Configure certaines données par défaut
|
||||||
if ($this->getInput('installDefaultData',helper::FILTER_BOOLEAN) === TRUE) {
|
if ($this->getInput('installDefaultData',helper::FILTER_BOOLEAN) === TRUE) {
|
||||||
$this->initData('page','fr',true);
|
$this->initData('page','fr',true);
|
||||||
|
BIN
core/module/install/ressource/file/source/faviconDark.ico
Normal file
BIN
core/module/install/ressource/file/source/faviconDark.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
@ -1,5 +1,5 @@
|
|||||||
# Bloque l'accès aux données
|
# Bloque l'accès aux données
|
||||||
<FilesMatch "\.json$">
|
<FilesMatch "\.json">
|
||||||
Order deny,allow
|
Order deny,allow
|
||||||
Deny from all
|
Deny from all
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
|
Loading…
Reference in New Issue
Block a user