예제 #1
0
 /**
  * @see wcf\page\IPage::assignVariables()
  */
 public function assignVariables()
 {
     parent::assignVariables();
     $useRequestData = count($_POST) ? true : false;
     I18nHandler::getInstance()->assignVariables($useRequestData);
     WCF::getTPL()->assign(array('groupID' => $this->group->groupID, 'action' => 'edit'));
     // add warning when the initiator is in the group
     if ($this->group->isMember($this->groupID)) {
         WCF::getTPL()->assign('warningSelfEdit', true);
     }
 }
예제 #2
0
	/**
	 * @see	wcf\page\IPage::assignVariables()
	 */
	public function assignVariables() {
		parent::assignVariables();
		
		I18nHandler::getInstance()->assignVariables(!empty($_POST));
		
		WCF::getTPL()->assign(array(
			'groupID' => $this->group->groupID,
			'group' => $this->group,
			'action' => 'edit'
		));
		
		// add warning when the initiator is in the group
		if ($this->group->isMember()) {
			WCF::getTPL()->assign('warningSelfEdit', true);
		}
	}