| @@ 190-199 (lines=10) @@ | ||
| 187 | $this->app['config']['block_realdir'], |
|
| 188 | $this->app['config']['block_default_realdir'], |
|
| 189 | ); |
|
| 190 | foreach ($readPaths as $readPath) { |
|
| 191 | $filePath = $readPath . '/' . $fileName . '.twig'; |
|
| 192 | $fs = new Filesystem(); |
|
| 193 | if ($fs->exists($filePath)) { |
|
| 194 | return array( |
|
| 195 | 'file_name' => $fileName, |
|
| 196 | 'tpl_data' => file_get_contents($filePath), |
|
| 197 | ); |
|
| 198 | } |
|
| 199 | } |
|
| 200 | } |
|
| 201 | } |
|
| 202 | ||
| @@ 255-264 (lines=10) @@ | ||
| 252 | ); |
|
| 253 | } |
|
| 254 | ||
| 255 | foreach ($readPaths as $readPath) { |
|
| 256 | $filePath = $readPath . '/' . $fileName . '.twig'; |
|
| 257 | $fs = new Filesystem(); |
|
| 258 | if ($fs->exists($filePath)) { |
|
| 259 | return array( |
|
| 260 | 'file_name' => $fileName, |
|
| 261 | 'tpl_data' => file_get_contents($filePath), |
|
| 262 | ); |
|
| 263 | } |
|
| 264 | } |
|
| 265 | } |
|
| 266 | } |
|
| 267 | ||