Ticket #296 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Smarty plugin path forgets system defaults

Reported by: dmorton Owned by: rjl
Priority: normal Milestone: 1.0.2
Component: PHP scripts Version: 1.0.0
Severity: normal Keywords:
Cc:

Description

Alexandre reports:

Hi,

Since working on Gentoo ebuild and clean installation, I've noticed that system installed Smarty didn't detect plugins.
I've digged arround and found that maia destroy plugins path in Smarty stuff.


--- smarty.php.org	2006-03-30 22:08:37.000000000 +0200
+++ smarty.php	2006-04-16 19:18:57.000000000 +0200
@@ -77,6 +77,7 @@
     if (isset($smarty_path)) {
       ini_set('include_path', $smarty_path . ":" . ini_get('include_path'));
       require_once ("Smarty.class.php");
+      define ("SMARTY_DIR", $smarty_path);
     } else {
       require_once ("Smarty/Smarty.class.php");
     }
@@ -164,6 +165,9 @@
     // create new smarty-instance
     //$smarty =& new ThemeSmarty('default');
     $smarty =& new ThemeSmarty($path);
+    if (isset($smarty_path)) {
+        $smarty->plugins_dir[] = $smarty_path . '/plugins';
+    }
     
     $include = $smarty->getBaseDir()."code/smarty.php";
     if(file_exists($include) && is_readable($include)) {

Change History

Changed 3 years ago by rjl

  • status changed from new to closed
  • resolution set to fixed

Fixed in [1017].

Note: See TracTickets for help on using tickets.