projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f6dc8d
)
Report the correct class name in exception.
author
Jan Schneider
<jan@horde.org>
Wed, 20 Oct 2010 16:39:13 +0000
(18:39 +0200)
committer
Jan Schneider
<jan@horde.org>
Thu, 21 Oct 2010 08:47:57 +0000
(10:47 +0200)
framework/Mime_Viewer/lib/Horde/Mime/Viewer.php
patch
|
blob
|
history
diff --git
a/framework/Mime_Viewer/lib/Horde/Mime/Viewer.php
b/framework/Mime_Viewer/lib/Horde/Mime/Viewer.php
index
fe26afa
..
7be08b9
100644
(file)
--- a/
framework/Mime_Viewer/lib/Horde/Mime/Viewer.php
+++ b/
framework/Mime_Viewer/lib/Horde/Mime/Viewer.php
@@
-44,12
+44,11
@@
class Horde_Mime_Viewer
}
/* Explicit class name, */
- $class = $driver;
- if (class_exists($class)) {
- return new $class($part, $params);
+ if (class_exists($driver)) {
+ return new $driver($part, $params);
}
- throw new Horde_Mime_Viewer_Exception(__CLASS__ . ': Class definition of ' . $
driver
. ' not found.');
+ throw new Horde_Mime_Viewer_Exception(__CLASS__ . ': Class definition of ' . $
class
. ' not found.');
}
}