Skip to content

Commit

Permalink
Merge branch 'hotfix/viewhelpermanager-undefinedindex' of git://githu…
Browse files Browse the repository at this point in the history
…b.com/coss/zf2 into hotfix/2778
  • Loading branch information
weierophinney committed Oct 16, 2012
2 parents fc4daae + a4cb964 commit 2e28c87
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/Zend/Mvc/Service/ViewHelperManagerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,8 @@ public function createService(ServiceLocatorInterface $serviceLocator)

$plugins->setFactory('basepath', function($sm) use($serviceLocator) {
$config = $serviceLocator->get('Config');
$config = $config['view_manager'];
$basePathHelper = new ViewHelper\BasePath;
if (isset($config['base_path'])) {
if (isset($config['view_manager']) && isset($config['view_manager']['base_path'])) {
$basePath = $config['base_path'];
} else {
$basePath = $serviceLocator->get('Request')->getBasePath();
Expand Down

0 comments on commit 2e28c87

Please sign in to comment.