/** * @param string $url * * @return string */ public function clean_url($uri) { $uri = parent::clean_url($uri); $pp = CMS::$print_prefix; if (is_string($pp)) { if ($m = Core_Regexps::match_with_results("{^/{$pp}/(.+)}", $uri)) { $uri = '/' . $m[1]; CMS::$print_version = true; } } return $uri; }
/** * @param string $name * @param WebKit_Controller_AbstractMapper $mapper * * @return mixed */ public function map($name, WebKit_Controller_AbstractMapper $mapper) { $this->map[$name] = $mapper->with_path($this->add_path($mapper['path'])); return $this; }