summaryrefslogtreecommitdiffstats
path: root/lib/private/app.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/app.php')
-rw-r--r--lib/private/app.php11
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/private/app.php b/lib/private/app.php
index 2abc015a91f..3df3a0e5bac 100644
--- a/lib/private/app.php
+++ b/lib/private/app.php
@@ -564,7 +564,7 @@ class OC_App {
}
/**
- * get the last version of the app, either from appinfo/version or from appinfo/info.xml
+ * get the last version of the app from appinfo/info.xml
*
* @param string $appId
* @return string
@@ -584,14 +584,9 @@ class OC_App {
* @return string
*/
public static function getAppVersionByPath($path) {
- $versionFile = $path . '/appinfo/version';
$infoFile = $path . '/appinfo/info.xml';
- if (is_file($versionFile)) {
- return trim(file_get_contents($versionFile));
- } else {
- $appData = self::getAppInfo($infoFile, true);
- return isset($appData['version']) ? $appData['version'] : '';
- }
+ $appData = self::getAppInfo($infoFile, true);
+ return isset($appData['version']) ? $appData['version'] : '';
}