|
@@ 160-167 (lines=8) @@
|
| 157 |
|
$dir = $this->app['publishing.dir.contents']; |
| 158 |
|
$file = $dir . '/' . $filename; |
| 159 |
|
|
| 160 |
|
if (!file_exists($file)) { |
| 161 |
|
$this->writeLn( |
| 162 |
|
sprintf('Included content file "%s" not found in "%s"', $filename, $this->item['config']['content']), |
| 163 |
|
'error' |
| 164 |
|
); |
| 165 |
|
|
| 166 |
|
return $filename; |
| 167 |
|
} |
| 168 |
|
|
| 169 |
|
$rendered = $this->renderString(file_get_contents($file), $variables); |
| 170 |
|
|
|
@@ 195-202 (lines=8) @@
|
| 192 |
|
$dir = $this->app['publishing.dir.contents']; |
| 193 |
|
$file = $dir . '/' . $filename; |
| 194 |
|
|
| 195 |
|
if (!file_exists($file)) { |
| 196 |
|
$this->writeLn( |
| 197 |
|
sprintf('Fragment file "%s" not found in "%s"', $filename, $this->item['config']['content']), |
| 198 |
|
'error' |
| 199 |
|
); |
| 200 |
|
|
| 201 |
|
return $filename; |
| 202 |
|
} |
| 203 |
|
|
| 204 |
|
$rendered = $this->renderString(file_get_contents($file), $variables); |
| 205 |
|
|