]> git.pld-linux.org Git - packages/CodeIgniter-lib-smarty.git/commitdiff
- use standard Smarty include path
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 12 May 2011 15:32:35 +0000 (15:32 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    Smarty_tpl.php -> 1.2

Smarty_tpl.php

index 9606336e70915835d693d23a03f40db5edc0a3b6..b5b386fab5f060b81895677e8f6a83143136c003 100644 (file)
@@ -1,12 +1,13 @@
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
-//smarty class in PLD-specific path
-require "/usr/share/php/Smarty.class.php";
-//system/application/libraries/smarty_tpl.php
-class smarty_tpl extends Smarty{
-    function smarty_tpl(){
+<?php
+
+defined('BASEPATH') or die('No direct script access allowed');
+
+// load smarty class
+require 'Smarty/Smarty.class.php';
+
+// system/application/libraries/smarty_tpl.php
+class smarty_tpl extends Smarty {
+    function smarty_tpl() {
         $this->Smarty();
         // templates folder
         $this->template_dir=    APPPATH."views/templates";
@@ -16,10 +17,10 @@ class smarty_tpl extends Smarty{
         $this->cache_dir=       APPPATH."views/cache";
         //config folder
         $this->config_dir=      APPPATH."views/config";
+
         // template recheck on
         $this->compile_check=   true;
+
         // cache off
         $this->caching=         false;
         $this->cache_lifetime=  86400;
This page took 0.053973 seconds and 4 git commands to generate.