summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-05-11 20:58:23 +0200
committerRobin Appelman <icewind@owncloud.com>2012-05-11 20:58:23 +0200
commit847832ae77938597dca1d0fb9c41366d568a70ef (patch)
tree23b3f854b6b7b8d1aa9b56a82ed2e3abf1debf91 /lib
parentd12021e3c431ed0380209fcf9442e3802aa7d73e (diff)
downloadnextcloud-server-847832ae77938597dca1d0fb9c41366d568a70ef.tar.gz
nextcloud-server-847832ae77938597dca1d0fb9c41366d568a70ef.zip
also set remote/public paths on installing apps
Diffstat (limited to 'lib')
-rw-r--r--lib/installer.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/installer.php b/lib/installer.php
index b75c009c8f0..e1f30ebe272 100644
--- a/lib/installer.php
+++ b/lib/installer.php
@@ -185,6 +185,14 @@ class OC_Installer{
//set the installed version
OC_Appconfig::setValue($info['id'],'installed_version',OC_App::getAppVersion($info['id']));
OC_Appconfig::setValue($info['id'],'enabled','no');
+
+ //set remote/public handelers
+ foreach($info['remote'] as $name=>$path){
+ OCP\CONFIG::setAppValue('core', 'remote_'.$name, '/apps/'.$info['id'].'/'.$path);
+ }
+ foreach($info['public'] as $name=>$path){
+ OCP\CONFIG::setAppValue('core', 'public_'.$name, '/apps/'.$info['id'].'/'.$path);
+ }
return $info['id'];
}
@@ -302,6 +310,14 @@ class OC_Installer{
}
$info=OC_App::getAppInfo($app);
OC_Appconfig::setValue($app,'installed_version',OC_App::getAppVersion($app));
+
+ //set remote/public handelers
+ foreach($info['remote'] as $name=>$path){
+ OCP\CONFIG::setAppValue('core', 'remote_'.$name, '/apps/'.$app.'/'.$path);
+ }
+ foreach($info['public'] as $name=>$path){
+ OCP\CONFIG::setAppValue('core', 'public_'.$name, '/apps/'.$app.'/'.$path);
+ }
return $info;
}