| @@ 189-198 (lines=10) @@ | ||
| 186 | $this->app['config']['block_realdir'], |
|
| 187 | $this->app['config']['block_default_realdir'], |
|
| 188 | ); |
|
| 189 | foreach ($readPaths as $readPath) { |
|
| 190 | $filePath = $readPath . '/' . $fileName . '.twig'; |
|
| 191 | $fs = new Filesystem(); |
|
| 192 | if ($fs->exists($filePath)) { |
|
| 193 | return array( |
|
| 194 | 'file_name' => $fileName, |
|
| 195 | 'tpl_data' => file_get_contents($filePath), |
|
| 196 | ); |
|
| 197 | } |
|
| 198 | } |
|
| 199 | } |
|
| 200 | } |
|
| 201 | ||
| @@ 264-273 (lines=10) @@ | ||
| 261 | ); |
|
| 262 | } |
|
| 263 | ||
| 264 | foreach ($readPaths as $readPath) { |
|
| 265 | $filePath = $readPath . '/' . $fileName . '.twig'; |
|
| 266 | $fs = new Filesystem(); |
|
| 267 | if ($fs->exists($filePath)) { |
|
| 268 | return array( |
|
| 269 | 'file_name' => $fileName, |
|
| 270 | 'tpl_data' => file_get_contents($filePath), |
|
| 271 | ); |
|
| 272 | } |
|
| 273 | } |
|
| 274 | } |
|
| 275 | } |
|
| 276 | ||