/** * Replaces any variable tags (eg %app_dir%) in the value * * @param string $option_value look for variables to substitute in this string * * @return string */ protected function replaceOptionVariables($option_value) { if (isset($this->templateDir)) { $option_value = preg_replace('/%template_dir%/', $this->templateDir, $option_value); } // run any parent substitutions $option_value = parent::replaceOptionVariables($option_value); return $option_value; }