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

Commit

Permalink
Merge branch 'master' of github.com:cargomedia/CM into issue-1640
Browse files Browse the repository at this point in the history
  • Loading branch information
dlondero committed Feb 16, 2015
2 parents de45e05 + 96bd652 commit 3b17f65
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions layout/default/css/function.fancySelect.less
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
right: 0;
bottom: 0;
height: 100%;
min-width: 100%;
width: auto;
width: 100%;
opacity: 0;
.appearance(none);
cursor: pointer;
Expand Down
2 changes: 1 addition & 1 deletion library/CM/Http/Response/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class CM_Http_Response_Page extends CM_Http_Response_Abstract {
private $_redirectUrl;

public function __construct(CM_Http_Request_Abstract $request, CM_Service_Manager $serviceManager) {
$this->_request = $request;
$this->_request = clone $request;
$this->_site = CM_Site_Abstract::findByRequest($this->_request);
$this->_request->popPathLanguage();

Expand Down
2 changes: 2 additions & 0 deletions library/CM/Http/Response/View/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ public function loadPage(CM_Params $params, CM_Http_Response_View_Ajax $response
}
$responsePage = new CM_Http_Response_Page_Embed($request, $this->getServiceManager());
$responsePage->process();
$request = $responsePage->getRequest();

$paths[] = $request->getPath();

if ($redirectUrl = $responsePage->getRedirectUrl()) {
Expand Down
4 changes: 2 additions & 2 deletions tests/library/CM/Http/Request/AbstractTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ public function testGetLanguageByUrl() {
CMTest_TH::createLanguage('en'); // default language
$urlLanguage = CMTest_TH::createLanguage('de');
$request = $this->_prepareRequest('/de/home');
CM_Http_Response_Abstract::factory($request, $this->getServiceManager());
$this->assertEquals($request->getLanguage(), $urlLanguage);
$response = CM_Http_Response_Abstract::factory($request, $this->getServiceManager());
$this->assertEquals($response->getRequest()->getLanguage(), $urlLanguage);
}

public function testGetLanguageByBrowser() {
Expand Down

0 comments on commit 3b17f65

Please sign in to comment.