aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2007-10-01 15:56:42 +0000
committerpatdenice <patdenice@piwigo.org>2007-10-01 15:56:42 +0000
commitf8e8bdf05bee2444f003bc5dbb001343e1459e73 (patch)
tree24456658bcfea6de2ee315492569f6571f2475e4 /admin
parenteebf7735864153d47bd6ce59470e0815e74e9b51 (diff)
0000749: Add an option to add new elements to caddie when synchronize database.
Add a redirection on index.php after "add to caddie action" (like on picture.php) git-svn-id: http://piwigo.org/svn/trunk@2114 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r--admin/site_update.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/admin/site_update.php b/admin/site_update.php
index f19b10d1e..a8dc0f5b4 100644
--- a/admin/site_update.php
+++ b/admin/site_update.php
@@ -485,6 +485,8 @@ SELECT IF(MAX(id)+1 IS NULL, 1, MAX(id)+1) AS next_element_id
'info' => l10n('update_research_added')
)
);
+
+ $caddiables[] = $insert['id'];
}
else
{
@@ -530,6 +532,8 @@ SELECT IF(MAX(id)+1 IS NULL, 1, MAX(id)+1) AS next_element_id
'info' => l10n('update_research_added')
)
);
+
+ $caddiables[] = $insert['id'];
}
}
@@ -550,6 +554,12 @@ SELECT IF(MAX(id)+1 IS NULL, 1, MAX(id)+1) AS next_element_id
array_keys($insert_links[0]),
$insert_links
);
+
+ // add new elements to caddie
+ if (isset($_POST['add_to_caddie']) and $_POST['add_to_caddie'] == 1)
+ {
+ fill_caddie($caddiables);
+ }
}
$counts['new_elements'] = count($inserts);
}
@@ -957,6 +967,12 @@ if (!isset($_POST['submit']) or (isset($simulate) and $simulate))
array('DISPLAY_INFO_CHECKED'=>'checked="checked"'));
}
+ if (isset($_POST['add_to_caddie']) and $_POST['add_to_caddie'] == 1)
+ {
+ $template->assign_vars(
+ array('ADD_TO_CADDIE_CHECKED'=>'checked="checked"'));
+ }
+
if (isset($_POST['subcats-included']) and $_POST['subcats-included'] == 1)
{
$template->assign_vars(