aboutsummaryrefslogtreecommitdiffstats
path: root/admin/extend_for_templates.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2008-09-25 17:46:27 +0000
committerpatdenice <patdenice@piwigo.org>2008-09-25 17:46:27 +0000
commit1eb3d18ae24a221037a44d662439d50c74e6fe9f (patch)
treebad9aae88920126457aeadf09a7a9ec55242977b /admin/extend_for_templates.php
parentfd0b26af453fedf4528eaf4114914a6e5b7bc685 (diff)
- Move get_extents function to include/functions.inc.php.
- Change all plugins version to 2.0. - LocalFiles Editor can now edit and create template extension. - Editarea (for LocalFiles Editor) go to version 0.7.2.2 (chrome compatible) - Editarea activation is now saved in database with AJAX. git-svn-id: http://piwigo.org/svn/trunk@2588 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/extend_for_templates.php')
-rw-r--r--admin/extend_for_templates.php33
1 files changed, 0 insertions, 33 deletions
diff --git a/admin/extend_for_templates.php b/admin/extend_for_templates.php
index 938b83fed..294d600af 100644
--- a/admin/extend_for_templates.php
+++ b/admin/extend_for_templates.php
@@ -36,39 +36,6 @@
*/
// +-----------------------------------------------------------------------+
-// | functions |
-// +-----------------------------------------------------------------------+
-
-/**
- * returns a list of templates currently available in template-extension
- *
- * Each .tpl file is extracted from template-extension.
- *
- * @return array
- */
-function get_extents($start='')
-{
- if ($start == '') { $start = './template-extension'; }
- $dir = opendir($start);
- $extents = array();
-
- while (($file = readdir($dir)) !== false)
- {
- if ( $file == '.' or $file == '..' or $file == '.svn') continue;
- $path = $start . '/' . $file;
- if (is_dir($path))
- {
- $extents = array_merge($extents, get_extents($path));
- }
- elseif ( !is_link($path) and file_exists($path)
- and strripos($path,'.tpl') > 0 )
- {
- $extents[] = substr($path, 21);
- }
- }
- return $extents;
-}
-// +-----------------------------------------------------------------------+
// initialization |
// +-----------------------------------------------------------------------+