packages: CodeIgniter-lib-smarty/Smarty_tpl.php - use standard Smarty inclu...

glen glen at pld-linux.org
Thu May 12 17:32:40 CEST 2011


Author: glen                         Date: Thu May 12 15:32:40 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- use standard Smarty include path

---- Files affected:
packages/CodeIgniter-lib-smarty:
   Smarty_tpl.php (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/CodeIgniter-lib-smarty/Smarty_tpl.php
diff -u packages/CodeIgniter-lib-smarty/Smarty_tpl.php:1.1 packages/CodeIgniter-lib-smarty/Smarty_tpl.php:1.2
--- packages/CodeIgniter-lib-smarty/Smarty_tpl.php:1.1	Thu May 12 16:28:46 2011
+++ packages/CodeIgniter-lib-smarty/Smarty_tpl.php	Thu May 12 17:32:35 2011
@@ -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 @@
         $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;
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/CodeIgniter-lib-smarty/Smarty_tpl.php?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list