3 * Template Lite template_build_dir template internal module
6 * Name: template_build_dir
9 function template_build_dir($dir, $id, &$object)
11 $_args = explode('|', $id);
12 if (count($_args) == 1 && empty($_args[0]))
14 return $object->_get_dir($dir);
16 $_result = $object->_get_dir($dir);
17 foreach($_args as $value)
20 if (!is_dir($_result))
22 mkdir($_result, 0777);
24 $_result.= DIRECTORY_SEPARATOR
;