projects
/
tine20
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
only get asset hash for enabled apps
[tine20]
/
tine20
/
Tinebase
/
Frontend
/
Http.php
diff --git
a/tine20/Tinebase/Frontend/Http.php
b/tine20/Tinebase/Frontend/Http.php
index
a08e773
..
e16806f
100644
(file)
--- a/
tine20/Tinebase/Frontend/Http.php
+++ b/
tine20/Tinebase/Frontend/Http.php
@@
-570,12
+570,17
@@
class Tinebase_Frontend_Http extends Tinebase_Frontend_Http_Abstract
return $asJson ? $json : json_decode($json, true);
}
return $asJson ? $json : json_decode($json, true);
}
+ /**
+ * @return string
+ * @throws Exception
+ * @throws Tinebase_Exception_InvalidArgument
+ */
public static function getAssetHash()
{
public static function getAssetHash()
{
- $
installedApps = Tinebase_Application::getInstance()->getApplications()
;
+ $
enabledApplications = Tinebase_Application::getInstance()->getApplicationsByState(Tinebase_Application::ENABLED)->name
;
$map = self::getAssetsMap();
foreach($map as $asset => $ressources) {
$map = self::getAssetsMap();
foreach($map as $asset => $ressources) {
- if (! $
installedApp
s->filter('name', basename($asset))->count()) {
+ if (! $
enabledApplication
s->filter('name', basename($asset))->count()) {
unset($map[$asset]);
}
}
unset($map[$asset]);
}
}