Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit ee93c08

Browse files
committed
Merge branch 'master' of git://github.com/zendframework/zf2 into cache_options

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/Page/AbstractPage.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ abstract class AbstractPage extends Container
168168
* If 'type' is not given, the type of page to construct will be determined
169169
* by the following rules:
170170
* - If $options contains either of the keys 'action', 'controller',
171-
* 'module', or 'route', a Zend_Navigation_Page_Mvc page will be created.
171+
* or 'route', a Zend_Navigation_Page_Mvc page will be created.
172172
* - If $options contains the key 'uri', a Zend_Navigation_Page_Uri page
173173
* will be created.
174174
*
@@ -233,7 +233,6 @@ public static function factory($options)
233233

234234
$hasUri = isset($options['uri']);
235235
$hasMvc = isset($options['action']) || isset($options['controller'])
236-
|| isset($options['module'])
237236
|| isset($options['route']);
238237

239238
if ($hasMvc) {

test/Page/PageFactoryTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ public function testDetectMvcPage()
5353
'label' => 'MVC Page',
5454
'controller' => 'index'
5555
)),
56-
AbstractPage::factory(array(
57-
'label' => 'MVC Page',
58-
'module' => 'index'
59-
)),
6056
AbstractPage::factory(array(
6157
'label' => 'MVC Page',
6258
'route' => 'home'

0 commit comments

Comments
 (0)