public function __construct(PWECore $core) { parent::__construct($core); $params = $this->PWE->getURL()->getParamsAsArray(); if ($params) { $this->item = $params[0]; } }
public function __construct(PWECore $core) { parent::__construct($core); $node = $core->getNode(); $this->dl_base = $node['!a']['files_base']; if (!$this->dl_base) { throw new HTTP5xxException("Not configured files base"); } $this->link_base = $node['!a']['download_link']; }