1
0

Added custom Hitcounter component

This commit is contained in:
2014-07-20 21:29:07 +02:00
parent d7e056a4ee
commit b5327bf993
5 changed files with 187 additions and 3 deletions

View File

@@ -187,7 +187,10 @@ class Program extends CActiveRecord
* @return string
*/
public function getDirectDownloadLink() {
return '/data/programs/' . $this->Name . '.zip' ;
if ($this->download_url == 'direkt' || is_null($this->download_url) || empty($this->download_url))
return '/data/programs/' . $this->Name . '.zip';
else
return $this->download_url;
}
/**