aboutsummaryrefslogtreecommitdiffstats
path: root/core/templates
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-11-15 19:43:10 +0100
committerThomas Tanghus <thomas@tanghus.net>2012-11-15 19:43:10 +0100
commitb51b9539d074222d01bd4a9836be6fe2f191a31e (patch)
treec5aff4e3f55fceb97eb6c747c61bff4307658eb6 /core/templates
parent8a93cc14f66b6d2d725ae52ce0bf632a03fac59d (diff)
downloadnextcloud-server-b51b9539d074222d01bd4a9836be6fe2f191a31e.tar.gz
nextcloud-server-b51b9539d074222d01bd4a9836be6fe2f191a31e.zip
Very simple js console switcher.
Diffstat (limited to 'core/templates')
-rw-r--r--core/templates/layout.base.php1
-rw-r--r--core/templates/layout.guest.php1
-rw-r--r--core/templates/layout.user.php1
3 files changed, 3 insertions, 0 deletions
diff --git a/core/templates/layout.base.php b/core/templates/layout.base.php
index d8f83058775..47f4b423b3e 100644
--- a/core/templates/layout.base.php
+++ b/core/templates/layout.base.php
@@ -8,6 +8,7 @@
<link rel="stylesheet" href="<?php echo $cssfile; ?>" type="text/css" media="screen" />
<?php endforeach; ?>
<script type="text/javascript">
+ var oc_debug = <?php echo (defined('DEBUG') && DEBUG) ? 'true' : 'false'; ?>;
var oc_webroot = '<?php echo OC::$WEBROOT; ?>';
var oc_appswebroots = <?php echo $_['apps_paths'] ?>;
var oc_requesttoken = '<?php echo $_['requesttoken']; ?>';
diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php
index 2eaa517b324..e83d9e1a682 100644
--- a/core/templates/layout.guest.php
+++ b/core/templates/layout.guest.php
@@ -8,6 +8,7 @@
<link rel="stylesheet" href="<?php echo $cssfile; ?>" type="text/css" media="screen" />
<?php endforeach; ?>
<script type="text/javascript">
+ var oc_debug = <?php echo (defined('DEBUG') && DEBUG) ? 'true' : 'false'; ?>;
var oc_webroot = '<?php echo OC::$WEBROOT; ?>';
var oc_appswebroots = <?php echo $_['apps_paths'] ?>;
var oc_requesttoken = '<?php echo $_['requesttoken']; ?>';
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 451a4685e82..ba5053edecf 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -8,6 +8,7 @@
<link rel="stylesheet" href="<?php echo $cssfile; ?>" type="text/css" media="screen" />
<?php endforeach; ?>
<script type="text/javascript">
+ var oc_debug = <?php echo (defined('DEBUG') && DEBUG) ? 'true' : 'false'; ?>;
var oc_webroot = '<?php echo OC::$WEBROOT; ?>';
var oc_appswebroots = <?php echo $_['apps_paths'] ?>;
var oc_current_user = '<?php echo OC_User::getUser() ?>';