Bug #4
Smarty include path error
| Status: | Closed | Start: | 03/04/2009 | |
| Priority: | Normal | Due date: | ||
| Assigned to: | nathan | % Done: | 100% |
|
| Category: | - | Spent time: | - | |
| Target version: | 0.5.2 | Estimated time: | 0.50 hours | |
Description
The Smarty include path is hard-coded into include/smarty.php in a distribution-specific nature.
/usr/local/lib/php/Smarty/Smarty.class.php
is specific to RH/FC/CentOS. On my OpenSuSE 10.2 box, it's
/usr/share/php5/Smarty/Smarty.class.php.
As long as the Smarty/ directory is within PHP_INCLUDE_PATH, the require() statement should just be:
require('Smarty/Smarty.class.php');
Associated revisions
fixes #4