summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-11-12 08:51:30 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-11-12 08:51:30 +0100
commitaf05be1ac7e5b115a1a5593d4d28e3f5556e8ed5 (patch)
treeb5d4ed5d4aee8c84701d446a214f32fc31ece350
parent9145aa607a221d3c223c33989cff05fff37f4182 (diff)
parentc9753655dca9f3a50ae7556dee95f0d46f27bc90 (diff)
downloadnextcloud-server-af05be1ac7e5b115a1a5593d4d28e3f5556e8ed5.tar.gz
nextcloud-server-af05be1ac7e5b115a1a5593d4d28e3f5556e8ed5.zip
Merge pull request #20461 from owncloud/assetpipeline-on-upgrade
Do not use the asset pipeline when doing updates
-rw-r--r--lib/private/template.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/private/template.php b/lib/private/template.php
index 38527cdc461..722194dc764 100644
--- a/lib/private/template.php
+++ b/lib/private/template.php
@@ -379,6 +379,17 @@ class OC_Template extends \OC\Template\Base {
* @return bool
*/
public static function isAssetPipelineEnabled() {
+ try {
+ if (\OCP\Util::needUpgrade()) {
+ // Don't use the compiled asset when we need to do an update
+ return false;
+ }
+ } catch (\Exception $e) {
+ // Catch any exception, because this code is also called when displaying
+ // an exception error page.
+ return false;
+ }
+
// asset management enabled?
$config = \OC::$server->getConfig();
$useAssetPipeline = $config->getSystemValue('asset-pipeline.enabled', false);