Skip to content

Commit ce23717

Browse files
Fixes
1 parent c738cf3 commit ce23717

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ CHANGE LOG
77
* Upgrade to Laravel 4.2
88

99

10+
## V1.1.1 (Upcoming)
11+
12+
* Blade extensions fix
13+
* Fixed storage path
14+
15+
1016
## V1.1 (21/04/2014)
1117

1218
* PHP 5.6 and HHVM compatibility

src/HTMLMinServiceProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,18 @@ protected function enableBladeOptimisations()
6868
$app = $this->app;
6969

7070
// register a new compiler
71-
$app->view->getEngineResolver()->register('blade.php', function () use ($app) {
71+
$app->view->getEngineResolver()->register('blade', function () use ($app) {
7272
$htmlmin = $app['htmlmin'];
7373
$files = $app['files'];
74-
$storagePath = $app['path'].'/storage/views';
74+
$storagePath = $app['path.storage'].'/views';
7575

7676
$compiler = new Compilers\HTMLMinCompiler($htmlmin, $files, $storagePath);
7777

7878
return new CompilerEngine($compiler);
7979
});
8080

8181
// add the extension
82-
$app->view->addExtension('blade.php', 'blade.php');
82+
$app->view->addExtension('blade.php', 'blade');
8383
}
8484

8585
/**

0 commit comments

Comments
 (0)