| @@ 141-146 (lines=6) @@ | ||
| 138 | if (!file_exists($this->coverFileName)) { |
|
| 139 | $this->coverFileName = NULL; |
|
| 140 | } |
|
| 141 | if (empty($this->coverFileName)) { |
|
| 142 | $this->coverFileName = sprintf('%s%s', $imgDirectory, $line->cover); |
|
| 143 | if (!file_exists($this->coverFileName)) { |
|
| 144 | $this->coverFileName = NULL; |
|
| 145 | } |
|
| 146 | } |
|
| 147 | if (empty($this->coverFileName)) { |
|
| 148 | $data = $this->getDataById($this->id); |
|
| 149 | if ($data) { |
|
| @@ 154-159 (lines=6) @@ | ||
| 151 | if (!file_exists($this->coverFileName)) { |
|
| 152 | $this->coverFileName = NULL; |
|
| 153 | } |
|
| 154 | if (empty($this->coverFileName)) { |
|
| 155 | $this->coverFileName = sprintf('%s%s.jpg', $imgDirectory, $data->name); |
|
| 156 | if (!file_exists($this->coverFileName)) { |
|
| 157 | $this->coverFileName = NULL; |
|
| 158 | } |
|
| 159 | } |
|
| 160 | } |
|
| 161 | } |
|
| 162 | } |
|