1
0

Added FullProgPreview to Indexpage

This commit is contained in:
2014-06-04 18:06:38 +02:00
parent fc21232523
commit 12b6a3359e
14 changed files with 436 additions and 211 deletions

View File

@@ -161,8 +161,8 @@ class Program extends CActiveRecord
public function getImagePath() {
if (file_exists('images/programs/thumbnails/' . $this->Name . '.png'))
return '/images/programs/thumbnails/' . $this->Name . '.png';
else if (file_exists('images/programs/thumbnails/' . $this->Name . '.jpg'))
return '/images/programs/thumbnails/' . $this->Name . '.jpg'; //TODO-MS REM ME - never use jpg
// else if (file_exists('images/programs/thumbnails/' . $this->Name . '.jpg'))
// return '/images/programs/thumbnails/' . $this->Name . '.jpg';
else throw new CHttpException(500, "Could not find Program Thumbnail '" . $this->Name . "'");
}