mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
merge r27713 from branch 2.6 to trunk
feature 3014: new trigger picture_modify_before_update git-svn-id: http://piwigo.org/svn/trunk@27714 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -154,6 +154,8 @@ if (isset($_POST['submit']) and count($page['errors']) == 0)
|
||||
$data{'date_creation'} = null;
|
||||
}
|
||||
|
||||
$data = trigger_change('picture_modify_before_update', $data);
|
||||
|
||||
single_update(
|
||||
IMAGES_TABLE,
|
||||
$data,
|
||||
|
||||
@@ -830,6 +830,13 @@ array(
|
||||
'files' => array('include\functions_rate.inc.php'),
|
||||
'infos' => 'New in 2.6.',
|
||||
),
|
||||
array(
|
||||
'name' => 'picture_modify_before_update',
|
||||
'type' => 'trigger_event',
|
||||
'vars' => array('array', 'data'),
|
||||
'files' => array('admin\picture_modify.php'),
|
||||
'infos' => 'New in 2.6.2.',
|
||||
),
|
||||
);
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
@@ -1006,4 +1013,4 @@ $("tfoot select").change(function () {
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user