fix wrong removes
This commit is contained in:
parent
adaee6a5a1
commit
f944707a15
|
@ -236,6 +236,29 @@ class OC_Installer{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Update an application
|
* @brief Update an application
|
||||||
|
*
|
||||||
|
* This function installs an app. All information needed are passed in the
|
||||||
|
* associative array $data.
|
||||||
|
* The following keys are required:
|
||||||
|
* - source: string, can be "path" or "http"
|
||||||
|
*
|
||||||
|
* One of the following keys is required:
|
||||||
|
* - path: path to the file containing the app
|
||||||
|
* - href: link to the downloadable file containing the app
|
||||||
|
*
|
||||||
|
* The following keys are optional:
|
||||||
|
* - pretend: boolean, if set true the system won't do anything
|
||||||
|
* - noupgrade: boolean, if true appinfo/upgrade.php won't be loaded
|
||||||
|
*
|
||||||
|
* This function works as follows
|
||||||
|
* -# fetching the file
|
||||||
|
* -# removing the old files
|
||||||
|
* -# unzipping new file
|
||||||
|
* -# including appinfo/upgrade.php
|
||||||
|
* -# setting the installed version
|
||||||
|
*
|
||||||
|
* upgrade.php can determine the current installed version of the app using
|
||||||
|
* "OC_Appconfig::getValue($appid, 'installed_version')"
|
||||||
*/
|
*/
|
||||||
public static function updateApp( $app ) {
|
public static function updateApp( $app ) {
|
||||||
$ocsid=OC_Appconfig::getValue( $app, 'ocsid');
|
$ocsid=OC_Appconfig::getValue( $app, 'ocsid');
|
||||||
|
|
Loading…
Reference in New Issue