Index: trunk/core/kernel/application.php =================================================================== diff -u -r4653 -r4674 --- trunk/core/kernel/application.php (.../application.php) (revision 4653) +++ trunk/core/kernel/application.php (.../application.php) (revision 4674) @@ -537,9 +537,18 @@ $this->Debugger->appendMemoryUsage('Application before Run:'); } - $this->LinkVar('module'); - $this->LinkVar('section'); + if ($this->IsAdmin()) { + // for permission checking in events & templates + $this->LinkVar('module'); // for common configuration templates + $this->LinkVar('section'); // for common configuration templates + if ($this->GetVar('m_opener') == 'p') { + $this->LinkVar('main_prefix'); // window prefix, that opened selector + $this->LinkVar('dst_field'); // field to set value choosed in selector + $this->LinkVar('return_template'); // template to go, when something was coosen from popup (from finalizePopup) + } + } + if (!$this->RequestProcessed) $this->ProcessRequest(); $this->InitParser();