Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
2bcfd8e
make it possible to update shipped apps via the appstore
georgehrke May 21, 2014
c8636ca
Merge branch 'master' into update_shipped_apps_from_appstore
georgehrke May 31, 2014
020255b
add button for properly uninstalling apps
georgehrke May 31, 2014
c6dc9ae
Merge branch 'master' into update_shipped_apps_from_appstore
georgehrke May 31, 2014
c8a8c7e
read ocsid from shipped apps on install
georgehrke May 31, 2014
eea501b
various fixes as requested by pr reviewers
georgehrke Jun 2, 2014
19129b3
use isset() instead of array_key_exists()
georgehrke Jun 3, 2014
56a8010
remove console.log in apps.js
georgehrke Jun 4, 2014
2c00ab1
update autoloader
georgehrke Jun 4, 2014
724d027
add unit test
georgehrke Jun 4, 2014
00b7f36
remove not needed unlink in installer test
georgehrke Jun 4, 2014
6aab50f
fix unit tests
DeepDiver1975 Jun 5, 2014
fad3bd7
reenable checkCode()
DeepDiver1975 Jun 5, 2014
0fe8f77
Merge branch 'master' into update_shipped_apps_from_appstore
georgehrke Jun 5, 2014
498aa66
add additional type check
georgehrke Jun 6, 2014
a110973
some additional type checks
georgehrke Jun 6, 2014
1ab9bdc
remove unnecessary @return
georgehrke Jun 10, 2014
5d4f3ba
fix php doc block
georgehrke Jun 10, 2014
6bf0689
always return a bool in OC_App::updateApp
georgehrke Jun 10, 2014
602404c
fix php doc block
georgehrke Jun 10, 2014
5e9fa64
don't show update button when appstore is disabled or no writable dir…
georgehrke Jun 10, 2014
0890ce4
Update preseed-config.php
georgehrke Jun 12, 2014
c378e76
skip certain tests for shipped apps
georgehrke Jun 13, 2014
65028c4
don't skip code check for skipped apps
georgehrke Jun 13, 2014
86f546f
disable code check for shipped apps
georgehrke Jun 16, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
some additional type checks
  • Loading branch information
georgehrke committed Jun 6, 2014
commit a110973b3a7d10c630e901e5ee7fb77b7a1e0f28
4 changes: 2 additions & 2 deletions lib/private/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ public static function getAppPath($appid) {
*/
public static function isAppDirWritable($appid) {
$path = self::getAppPath($appid);
return is_writable($path);
return ($path !== false) ? is_writable($path) : false;
}

/**
Expand All @@ -544,7 +544,7 @@ public static function getAppWebPath($appid) {
*/
public static function getAppVersion($appid) {
$file = self::getAppPath($appid);
return self::getAppVersionByPath($file);
return ($file !== false) ? self::getAppVersionByPath($file) : '0';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/private/installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public static function updateApp( $info=array() ) {
$basedir .= '/';
$basedir .= $info['id'];

if($currentDir !== null && is_writable($currentDir)) {
if($currentDir !== false && is_writable($currentDir)) {
$basedir = $currentDir;
}
if(is_dir($basedir)) {
Expand Down