projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ba384d
)
For javascript embedded renderers, don't return anything but valid, successfully...
author
Michael J. Rubinsky
<mrubinsk@horde.org>
Thu, 23 Sep 2010 18:22:25 +0000
(14:22 -0400)
committer
Michael J. Rubinsky
<mrubinsk@horde.org>
Thu, 23 Sep 2010 18:22:59 +0000
(14:22 -0400)
ansel/lib/Ajax/Imple/Embed.php
patch
|
blob
|
history
diff --git
a/ansel/lib/Ajax/Imple/Embed.php
b/ansel/lib/Ajax/Imple/Embed.php
index
5ec9258
..
f24d2c2
100644
(file)
--- a/
ansel/lib/Ajax/Imple/Embed.php
+++ b/
ansel/lib/Ajax/Imple/Embed.php
@@
-36,9
+36,12
@@
class Ansel_Ajax_Imple_Embed extends Horde_Core_Ajax_Imple
if (!class_exists($class)) {
throw new Horde_Exception(sprintf("Class definition for %s not found.", $class));
}
- $view = new $class($args);
- header('Content-Type: script/javascript');
- return $view->html();
+
+ try {
+ $view = new $class($args);
+ header('Content-Type: script/javascript');
+ return $view->html();
+ } catch (Exception $e) {}
}
}