diff options
Diffstat (limited to 'src/interfaces/renderer.php')
-rw-r--r-- | src/interfaces/renderer.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/interfaces/renderer.php b/src/interfaces/renderer.php index 1e1d2fc..f1103f2 100644 --- a/src/interfaces/renderer.php +++ b/src/interfaces/renderer.php @@ -530,10 +530,18 @@ abstract class ezcGraphRenderer * @param string $file Filename of destination file * @return void */ - public function render( $file ) + public function render( $file = null ) { $this->finish(); - $this->driver->render( $file ); + + if ( $file === null ) + { + $this->driver->renderToOutput(); + } + else + { + $this->driver->render( $file ); + } } } ?> |