/[drupal]/contributions/theme-engines/smarty/smartytemplate.php
ViewVC logotype

Diff of /contributions/theme-engines/smarty/smartytemplate.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.6, Sat Dec 31 09:24:02 2005 UTC revision 1.6.2.1, Tue Sep 4 04:53:43 2007 UTC
# Line 1  Line 1 
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
# Line 143  class SmartyTemplate extends Smarty { Line 143  class SmartyTemplate extends Smarty {
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);

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.6.2.1

  ViewVC Help
Powered by ViewVC 1.1.2