X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fsmarty%2Fcore%2Fcore.write_compiled_resource.php;fp=inc%2Fsmarty%2Fcore%2Fcore.write_compiled_resource.php;h=0000000000000000000000000000000000000000;hb=b42b2bf946332ad8544d53f610be9cb05e80bf56;hp=58c1ca06310bd2b48d7ddf27fe8cd6d4f5f38a50;hpb=e586807dafc64c3fe152ab518599e6cf3f0f84e1;p=mirrors%2FKyberia-bloodline.git diff --git a/inc/smarty/core/core.write_compiled_resource.php b/inc/smarty/core/core.write_compiled_resource.php deleted file mode 100644 index 58c1ca0..0000000 --- a/inc/smarty/core/core.write_compiled_resource.php +++ /dev/null @@ -1,37 +0,0 @@ -compile_dir)) { - // compile_dir not writable, see if it exists - if(!@is_dir($smarty->compile_dir)) { - $smarty->trigger_error('the $compile_dir \'' . $smarty->compile_dir . '\' does not exist, or is not a directory.', E_USER_ERROR); - return false; - } - $smarty->trigger_error('unable to write to $compile_dir \'' . realpath($smarty->compile_dir) . '\'. Be sure $compile_dir is writable by the web server user.', E_USER_ERROR); - return false; - } - - $_params = array('filename' => $params['compile_path'], 'contents' => $params['compiled_content'], 'create_dirs' => true); - require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.write_file.php'); - smarty_core_write_file($_params, $smarty); - touch($params['compile_path'], $params['resource_timestamp']); - return true; -} - -/* vim: set expandtab: */ - -?>