aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-03-05 02:26:58 +0000
committerrvelices <rv-github@modusoptimus.com>2008-03-05 02:26:58 +0000
commitef77dac315831446c72fbd1f1746db94d12f1207 (patch)
treeabf3ec45d780a7726a8b66c162ccf38b2316daa0
parenta55cf25bdf2fc5b5056c5f25ecc5dd21ee17c245 (diff)
- remove unused functions get_month_list and get_day_list
git-svn-id: http://piwigo.org/svn/trunk@2252 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--admin/picture_modify.php1
-rw-r--r--include/functions.inc.php72
2 files changed, 0 insertions, 73 deletions
diff --git a/admin/picture_modify.php b/admin/picture_modify.php
index 6e320e902..abf11aa2a 100644
--- a/admin/picture_modify.php
+++ b/admin/picture_modify.php
@@ -308,7 +308,6 @@ else
}
-get_month_list('date_creation_month', $month);
$month_list = $lang['month'];
$month_list[0]='------------';
ksort($month_list);
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 41124f782..bc08ce41d 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -1026,78 +1026,6 @@ function array_from_query($query, $fieldname)
}
/**
- * instantiate number list for days in a template block
- *
- * @param string blockname
- * @param string selection
- */
-function get_day_list($blockname, $selection)
-{
- global $template;
-
- $template->assign_block_vars(
- $blockname,
- array(
- 'SELECTED' => '',
- 'VALUE' => 0,
- 'OPTION' => '--'
- )
- );
-
- for ($i = 1; $i <= 31; $i++)
- {
- $selected = '';
- if ($i == (int)$selection)
- {
- $selected = 'selected="selected"';
- }
- $template->assign_block_vars(
- $blockname,
- array(
- 'SELECTED' => $selected,
- 'VALUE' => $i,
- 'OPTION' => str_pad($i, 2, '0', STR_PAD_LEFT)
- )
- );
- }
-}
-
-/**
- * instantiate month list in a template block
- *
- * @param string blockname
- * @param string selection
- */
-function get_month_list($blockname, $selection)
-{
- global $template, $lang;
-
- $template->assign_block_vars(
- $blockname,
- array(
- 'SELECTED' => '',
- 'VALUE' => 0,
- 'OPTION' => '------------')
- );
-
- for ($i = 1; $i <= 12; $i++)
- {
- $selected = '';
- if ($i == (int)$selection)
- {
- $selected = 'selected="selected"';
- }
- $template->assign_block_vars(
- $blockname,
- array(
- 'SELECTED' => $selected,
- 'VALUE' => $i,
- 'OPTION' => $lang['month'][$i])
- );
- }
-}
-
-/**
* fill the current user caddie with given elements, if not already in
* caddie
*