diff --git a/extension.driver.php b/extension.driver.php index fb20280..828b952 100644 --- a/extension.driver.php +++ b/extension.driver.php @@ -44,6 +44,7 @@ public function appendElementBelowView(Array &$context) { $c = Administration::instance()->getPageCallback(); // when editing a section + $c['context'][0] = $c['context'][0] ?? null; if ($c['driver'] == 'blueprintssections' && $c['context'][0] == 'edit') { $form = Administration::instance()->Page->Form; @@ -114,6 +115,7 @@ public function __action(Array &$context) { self::appendElementBelowView($context); // if the clone button was hit + $_POST['action']= $_POST['action'] ?? null; if (is_array($_POST['action']) && isset($_POST['action']['clone'])) { $c = Administration::instance()->getPageCallback(); diff --git a/extension.meta.xml b/extension.meta.xml index 4374e63..c65b779 100644 --- a/extension.meta.xml +++ b/extension.meta.xml @@ -2,7 +2,7 @@ Duplicate Section Easily duplicate/clone your section parameters and fields - https://github.com/Solutions-Nitriques/duplicate_section + https://github.com/animaux/duplicate_section https://www.getsymphony.com/discuss/thread/73413/ Workflow @@ -27,6 +27,12 @@ + + - PHP8 fixes (requires PHP7) + + + - Add german language + - Remove section dates diff --git a/lang/lang.de.php b/lang/lang.de.php new file mode 100644 index 0000000..423e6f3 --- /dev/null +++ b/lang/lang.de.php @@ -0,0 +1,28 @@ + 'Deutsch', + 'author' => array( + 'name' => 'Alexander Rutz', + 'email' => 'ar@animaux.de', + 'website' => 'http://www.animaux.de/' + ), + 'release-date' => '2019-06-13', + ); + + + /** + * Save and return + */ + $dictionary = array( + + 'Easily duplicate/clone your section parameters and fields' => + 'Bereiche mit ihren Einstellungen und Feldern einfach duplizieren', + + + 'Clone' => + 'Duplizieren', + + 'Duplicate this section' => + 'Diesen Bereich duplizieren' + );