This is helpful if the language item has different values based on option settings, e.g. if a certain part of the language item is only visible if a related option is enabled.
protected function parseController() {
if ($this->controller === null) {
$this->controller = '';
-
+
// resolve application and controller
if ($this->menuItemController) {
$parts = explode('\\', $this->menuItemController);
* @return string
*/
public function __toString() {
- return WCF::getLanguage()->get($this->menuItem);
+ return WCF::getLanguage()->getDynamicVariable($this->menuItem);
}
}