From 3fa275e75f5649d519b90407db5ae7f84eddcf00 Mon Sep 17 00:00:00 2001 From: Tristan Lins Date: Wed, 30 Jul 2014 17:13:47 +0200 Subject: [PATCH] Also update the .htaccess on delete, cut, copy and restore. --- dca/tl_redirect4ward.php | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/dca/tl_redirect4ward.php b/dca/tl_redirect4ward.php index 1a587f6..c80ed6f 100644 --- a/dca/tl_redirect4ward.php +++ b/dca/tl_redirect4ward.php @@ -18,6 +18,22 @@ 'dataContainer' => 'Table', 'enableVersioning' => false, 'onsubmit_callback' => array + ( + array('tl_redirect4ward', 'updateHtaccess') + ), + 'ondelete_callback' => array + ( + array('tl_redirect4ward', 'updateHtaccess') + ), + 'oncut_callback' => array + ( + array('tl_redirect4ward', 'updateHtaccess') + ), + 'oncopy_callback' => array + ( + array('tl_redirect4ward', 'updateHtaccess') + ), + 'onrestore_callback' => array ( array('tl_redirect4ward', 'updateHtaccess') ) @@ -428,4 +444,4 @@ public function pagePicker(DataContainer $dc) return ' ' .\Image::getHtml('pickpage.gif', $GLOBALS['TL_LANG']['MSC']['pagepicker'], 'style="vertical-align:top;cursor:pointer" onclick="Backend.pickPage(\'ctrl_' . $dc->inputName . '\')"'); } -} \ No newline at end of file +}