mirror of
https://github.com/nextcloud/server.git
synced 2026-02-19 02:38:40 -05:00
fix: Log that using an appinfo/install.php file is deprecated
appinfo/install.php is not part of the official documentation for application development but some apps are still using such a file. Log a message to deprecate this behavior, to be able to remove support for this later. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
8ccf87f7a2
commit
a25797330b
1 changed files with 8 additions and 2 deletions
|
|
@ -558,8 +558,14 @@ class Installer {
|
|||
$queue->add($job);
|
||||
}
|
||||
|
||||
// Run appinfo/install.php
|
||||
self::includeAppScript($appPath . '/appinfo/install.php');
|
||||
// Run deprecated appinfo/install.php if any
|
||||
$appInstallScriptPath = $appPath . '/appinfo/install.php';
|
||||
if (file_exists($appInstallScriptPath)) {
|
||||
$this->logger->warning('Using an appinfo/install.php file is deprecated. Application "{app}" still uses one.', [
|
||||
'app' => $info['id'],
|
||||
]);
|
||||
self::includeAppScript($appInstallScriptPath);
|
||||
}
|
||||
|
||||
\OC_App::executeRepairSteps($info['id'], $info['repair-steps']['install']);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue