| 1 |
<?php |
<?php |
| 2 |
// $Id: smartytemplate.php,v 1.5 2005/08/21 20:06:23 tclineks Exp $ |
// $Id: smartytemplate.php,v 1.6 2005/12/31 09:24:02 tclineks Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 143 |
* If unable to create it will stop execution and direct user to permissions setup |
* If unable to create it will stop execution and direct user to permissions setup |
| 144 |
*/ |
*/ |
| 145 |
function _get_compile_dir($path) { |
function _get_compile_dir($path) { |
| 146 |
$dir = ENGINE_PATH.'/templates_c/'.substr(strrchr($path, '/'), 1); |
$dir = ENGINE_PATH.'/templates_c/'.substr(strrchr(conf_path(), '/'), 1).'_'.substr(strrchr($path, '/'), 1); |
| 147 |
if (!file_exists($dir)) { |
if (!file_exists($dir)) { |
| 148 |
if (!@mkdir($dir)) { |
if (!@mkdir($dir)) { |
| 149 |
_test_permissions(true); |
_test_permissions(true); |