mirror of
https://github.com/ZeJMaN/LBCAlerte_ynh.git
synced 2025-12-06 05:51:57 +01:00
Upgrade LBCAlerte to version 3.3
Add upgrade script
This commit is contained in:
9
sources/app/annonce/init.php
Normal file
9
sources/app/annonce/init.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$storageType = $config->get("storage", "type", "files");
|
||||
if ($storageType == "db") {
|
||||
$storage = new \App\Storage\Db\Ad($dbConnection, $userAuthed);
|
||||
} else {
|
||||
$storage = new \App\Storage\File\Ad(DOCUMENT_ROOT."/var/configs/backup-ads-".$auth->getUsername().".csv");
|
||||
}
|
||||
|
||||
$adPhoto = new App\Storage\AdPhoto($userAuthed);
|
||||
Reference in New Issue
Block a user