Changeset 18629 for trunk/admin
- Timestamp:
- Oct 12, 2012, 10:00:16 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/extend_for_templates.php
r12922 r18629 114 114 $flip_templates = array_flip($eligible_templates); 115 115 116 /** 117 * returns an array contening sub-directories, excluding ".svn" 118 * 119 * @param string $dir 120 * @return array 121 */ 122 function get_dirs($directory) 123 { 124 $sub_dirs = array(); 125 if ($opendir = opendir($directory)) 126 { 127 while ($file = readdir($opendir)) 128 { 129 if ($file != '.' 130 and $file != '..' 131 and is_dir($directory.'/'.$file) 132 and $file != '.svn') 133 { 134 array_push($sub_dirs, $file); 135 } 136 } 137 closedir($opendir); 138 } 139 return $sub_dirs; 140 } 141 116 142 $available_templates = array_merge( 117 143 array('N/A' => '----------'),
Note: See TracChangeset
for help on using the changeset viewer.