diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-01-04 10:15:48 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-01-04 10:15:48 +0000 |
commit | f1983871f351d2195102760db3141ed70f8772a9 (patch) | |
tree | d4afeca7e424fed39ca1b92e6ddda39d62385cff /src/driver/svg.php | |
parent | 65cfcdc9adc89cdb7888dc6d826159a517e60108 (diff) | |
download | zetacomponents-graph-f1983871f351d2195102760db3141ed70f8772a9.zip zetacomponents-graph-f1983871f351d2195102760db3141ed70f8772a9.tar.gz |
- Rosolved task #9889: Throw meaningful exception if extension needed for
driver is not available.
# Actually using ezcBase::checkDependency() which calls die() instead of
# throwing an exception
Diffstat (limited to 'src/driver/svg.php')
-rw-r--r-- | src/driver/svg.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/driver/svg.php b/src/driver/svg.php index a30c15d..0c2c374 100644 --- a/src/driver/svg.php +++ b/src/driver/svg.php @@ -71,6 +71,7 @@ class ezcGraphSvgDriver extends ezcGraphDriver */ public function __construct( array $options = array() ) { + ezcBase::checkDependency( 'Graph', ezcBase::DEP_PHP_EXTENSION, 'dom' ); $this->options = new ezcGraphSvgDriverOptions( $options ); } |