1. webvariants
  2. Untitled project
  3. Translator

Commits

Tim Gerrits  committed 7574bc6

changed groupID to groupName

  • Participants
  • Parent commits 7e2cc11
  • Branches default

Comments (0)

Files changed (2)

File lib/sly/Controller/Translator.php

View file
 
 		$groupID = sly_get('group', 'string');
 
-		if (!$this->wv9->groupExists($groupID)) {
+		if (!$this->service->groupExists($groupID)) {
 			print sly_Helper_Message::warn(t('translator_error_unknown_group'));
 			return $this->indexAction();
 		}

File views/table.phtml

View file
 	<?php
 
 	if ($manager) {
-		$adder->setContent('<a href="'.$url.'addunit&amp;group='.$groupID.'"><img src="'.$path.'unit_add.png" alt="add" title="'.t('translator_link_add_element').'" /></a>');
+		$adder->setContent('<a href="'.$url.'addunit&amp;group='.$groupName.'"><img src="'.$path.'unit_add.png" alt="add" title="'.t('translator_link_add_element').'" /></a>');
 	}
 	else {
 		$adder->setContent('<img src="'.$path.'unit.png" alt="element" />');
 	}
 
-	$table->setID('group_'.$groupID);
+	$table->setID('group_'.$groupName);
 	$table->openBuffer();
 
 	if (empty($units)) {
 
 ?>
 
-<?php if ($manager): ?>
+<!--<?php if ($manager): ?>
 <p class="wv9-addgroup">
 	<a class="sly-button" href="<?php print $url ?>addgroup"><span><?php print t('translator_add_new_group') ?></span></a>
 </p>
 	});
 });
 </script>
-<?php endif ?>
+<?php endif ?>-->