projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
80fd11c
)
Debug extension is safe in a cli context
author
Grégoire Pineau
<lyrixx@lyrixx.info>
Sun, 21 Apr 2013 14:30:55 +0000 (16:30 +0200)
committer
Grégoire Pineau
<lyrixx@lyrixx.info>
Sun, 21 Apr 2013 14:30:55 +0000 (16:30 +0200)
lib/Twig/Extension/Debug.php
patch
|
blob
|
history
diff --git
a/lib/Twig/Extension/Debug.php
b/lib/Twig/Extension/Debug.php
index
97007fb
..
e3a85bf
100644
(file)
--- a/
lib/Twig/Extension/Debug.php
+++ b/
lib/Twig/Extension/Debug.php
@@
-24,6
+24,7
@@
class Twig_Extension_Debug extends Twig_Extension
// false means that it was not set (and the default is on) or it explicitly enabled
// xdebug.overload_var_dump produces HTML only when html_errors is also enabled
&& (false === ini_get('html_errors') || ini_get('html_errors'))
+ || 'cli' === php_sapi_name()
;
return array(