]> git.mxchange.org Git - friendica.git/blobdiff - mod/group.php
Switching from "new share" to "old share"
[friendica.git] / mod / group.php
index f5a37819ed92e7e44ec580a8006e95358095c555..cef4371e94e2448986bce90b03f4e32d0e507438 100644 (file)
@@ -83,13 +83,7 @@ function group_content(&$a) {
 
        $tpl = get_markup_template('group_edit.tpl');
 
-       $includes = array(
-                       '$field_input' => 'field_input.tpl',
-                       '$groupeditortpl' => 'groupeditor.tpl',
-       );
-       $includes = set_template_includes($a->theme['template_engine'], $includes);
-
-       $context = $includes + array(
+       $context = array(
                        '$submit' => t('Submit'),
        );
 
@@ -226,16 +220,15 @@ function group_content(&$a) {
                }
        }
 
+       $context['$groupeditor'] = $groupeditor;
        $context['$desc'] = t('Click on a contact to add or remove.');
 
        if($change) {
-               $context['$groupeditor'] = $groupeditor;
                $tpl = get_markup_template('groupeditor.tpl');
                echo replace_macros($tpl, $context);
                killme();
        }
        
-       $context['$groupedit_info'] = $groupeditor;
        return replace_macros($tpl, $context);
 
 }