Skip to content

Commit

Permalink
Remove Exception from View::setTemplateDirectory()
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Lockhart committed Dec 24, 2011
1 parent e72c776 commit 48c906c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Slim/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,6 @@ public function getTemplatesDirectory() {
* @throws RuntimeException If directory is not a directory or does not exist
*/
public function setTemplatesDirectory( $dir ) {
if ( !is_dir($dir) ) {
throw new RuntimeException('Cannot set View templates directory to: ' . $dir . '. Directory does not exist.');
}
$this->templatesDirectory = rtrim($dir, '/');
}

Expand Down

0 comments on commit 48c906c

Please sign in to comment.