aboutsummaryrefslogtreecommitdiffstats
path: root/admin/extend_for_templates.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/extend_for_templates.php')
-rw-r--r--admin/extend_for_templates.php26
1 files changed, 0 insertions, 26 deletions
diff --git a/admin/extend_for_templates.php b/admin/extend_for_templates.php
index cb2845adc..0faced402 100644
--- a/admin/extend_for_templates.php
+++ b/admin/extend_for_templates.php
@@ -113,32 +113,6 @@ $eligible_templates = array(
$flip_templates = array_flip($eligible_templates);
-/**
- * returns an array contening sub-directories, excluding ".svn"
- *
- * @param string $dir
- * @return array
- */
-function get_dirs($directory)
-{
- $sub_dirs = array();
- if ($opendir = opendir($directory))
- {
- while ($file = readdir($opendir))
- {
- if ($file != '.'
- and $file != '..'
- and is_dir($directory.'/'.$file)
- and $file != '.svn')
- {
- array_push($sub_dirs, $file);
- }
- }
- closedir($opendir);
- }
- return $sub_dirs;
-}
-
$available_templates = array_merge(
array('N/A' => '----------'),
get_dirs(PHPWG_ROOT_PATH.'themes'));