check if smarty exists
authorStricted <info@stricted.de>
Sat, 6 Jun 2015 21:50:07 +0000 (23:50 +0200)
committerStricted <info@stricted.de>
Sat, 6 Jun 2015 21:50:07 +0000 (23:50 +0200)
lib/api/page/IndexPage.class.php
lib/system/DNS.class.php

index 40a2cfcf79f909220390c0a2ffda1ce0bffdb92b..4578f8154b0b9ebf25dd2358472ef7c66bba1bcd 100644 (file)
@@ -8,8 +8,8 @@ use dns\page\AbstractPage;
  * @copyright   2013-2015 Jan Altensen (Stricted)
  */
 class IndexPage extends AbstractPage {
-    public function prepare () {
-        /* we have no index page */
-        exit;
-    }
+       public function prepare () {
+               /* we have no index page */
+               exit;
+       }
 }
\ No newline at end of file
index 31d428c454acd06ede068a2503173a5a47a054b2..1ca2bb26ca4bbec68622c78ff5863b73d579e6bd 100644 (file)
@@ -278,6 +278,10 @@ class DNS {
                        $tpl = self::getSession()->tpl;
                }
                
+               if (!file_exists(DNS_DIR.'/lib/system/api/smarty/libs/Smarty.class.php')) {
+                       throw new SystemException('Unable to find Smarty');
+               }
+               
                require_once(DNS_DIR.'/lib/system/api/smarty/libs/Smarty.class.php');
                self::$tplObj = new \Smarty;