Skip to content

Commit

Permalink
refs #1650 : bugfix - context cannot be the input of other functions.
Browse files Browse the repository at this point in the history
 -
  • Loading branch information
inureyes committed Mar 1, 2014
1 parent dcc00ca commit 39e3c89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interface/common/blog/begin.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
dress('SKIN_head_end', $canonicalLink.$automaticLink."[##_SKIN_head_end_##]", $view);
$browserUtil = Utils_Browser::getInstance();
if(Setting::getBlogSettingGlobal('useiPhoneUI',true) && ($browserUtil->isMobile() == true)) {
if (!empty($context->getProperty('suri.id'))) {
if ($context->getProperty('suri.id',null)!=null) {
$mobileDestinationItem = $context->getProperty('suri.id');
if ($context->getProperty('suri.directive') == '/') {
$mobileDestinationItem = 'entry/'.$mobileDestinationItem;
}
} else if(!empty($context->getProperty('suri.value'))) {
} else if($context->getProperty('suri.value',null) != null) {
$mobileDestinationItem = URL::encode($context->getProperty('suri.value'));
} else {
$mobileDestinationItem = '';
Expand Down

0 comments on commit 39e3c89

Please sign in to comment.