summaryrefslogtreecommitdiffstats
path: root/lib/public/App.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-01-29 13:09:32 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-01-31 14:13:15 +0100
commit19a0a9a4e7e9e511f5f3d99c697e57e7bb0260e6 (patch)
tree6222451aff18bbb4417f9568fec9dccee7ebf721 /lib/public/App.php
parent142914608307839dca300a2d410b869b6d2d3444 (diff)
downloadnextcloud-server-19a0a9a4e7e9e511f5f3d99c697e57e7bb0260e6.tar.gz
nextcloud-server-19a0a9a4e7e9e511f5f3d99c697e57e7bb0260e6.zip
Move getAppInfo and getAppVersion to IAppManager
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/public/App.php')
-rw-r--r--lib/public/App.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/public/App.php b/lib/public/App.php
index 3afd36f2c96..d44f719b7ea 100644
--- a/lib/public/App.php
+++ b/lib/public/App.php
@@ -114,6 +114,7 @@ class App {
* @param string $app id of the app or the path of the info.xml file
* @param boolean $path (optional)
* @return array|null
+ * @deprecated 14.0.0 ise \OC::$server->getAppManager()->getAppInfo($appId)
* @since 4.0.0
*/
public static function getAppInfo( $app, $path=false ) {
@@ -148,8 +149,9 @@ class App {
* @param string $app
* @return string
* @since 4.0.0
+ * @deprecated 14.0.0 use \OC::$server->getAppManager()->getAppVersion($appId)
*/
public static function getAppVersion( $app ) {
- return \OC_App::getAppVersion( $app );
+ return \OC::$server->getAppManager()->getAppVersion($app);
}
}