diff options
author | Adrian Lang <lang@cosmocode.de> | 2010-02-08 12:58:45 +0100 |
---|---|---|
committer | Adrian Lang <lang@cosmocode.de> | 2010-02-08 12:59:16 +0100 |
commit | 905fa971d08ada202c78b350303dc6a53c570e01 (patch) | |
tree | b27e03277c9f1728e234523256ed5255999664c4 | |
parent | 40868f2faa85215dfea2fa0c82274a4806d042ab (diff) | |
download | rpg-905fa971d08ada202c78b350303dc6a53c570e01.tar.gz rpg-905fa971d08ada202c78b350303dc6a53c570e01.tar.bz2 |
Strip (secedit) id from section edit request
-rw-r--r-- | inc/html.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/inc/html.php b/inc/html.php index c2b0db17d..7849cc809 100644 --- a/inc/html.php +++ b/inc/html.php @@ -107,7 +107,7 @@ function html_secedit($text,$show=true){ * @author Andreas Gohr <andi@splitbrain.org> */ function html_secedit_button($matches){ - $data = array('id' => $matches[1], + $data = array('secid' => $matches[1], 'target' => strtolower($matches[2]), 'range' => $matches[count($matches) - 1]); if (count($matches) === 5) { @@ -133,8 +133,11 @@ function html_secedit_get_button($data) { $name = $data['name']; unset($data['name']); + $secid = $data['secid']; + unset($data['secid']); + return "<div class='secedit editbutton_" . $data['target'] . - " editbutton_" . $data['id'] . "'>" . + " editbutton_" . $data['secid'] . "'>" . html_btn('secedit', $ID, '', array_merge(array('do' => 'edit', 'rev' => $INFO['lastmod']), $data), |