Skip to content

Commit

Permalink
refs #1654: revert local-only changes
Browse files Browse the repository at this point in the history
  • Loading branch information
achimnol committed Mar 14, 2014
1 parent 767b6f9 commit aef0b91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
/// Copyright (c) 2004-2014, Needlworks / Tatter Network Foundation
/// All rights reserved. Licensed under the GPL.
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
#define('__TEXTCUBE_NO_FANCY_URL__',true);
define('__TEXTCUBE_NO_FANCY_URL__',true);
require 'rewrite.php';
?>
7 changes: 3 additions & 4 deletions library/preprocessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,9 @@
*/
/// Override mobile mode call
$browserUtil = Utils_Browser::getInstance();
#if($context->getProperty('blog.useiPhoneUI',true) && ($browserUtil->isMobile() == true)
# && (!isset($_GET['mode']) || $_GET['mode'] != 'desktop')
# && (!isset($_SESSION['mode']) || !in_array($_SESSION['displayMode'],array('desktop')))) {
if(true) {
if($context->getProperty('blog.useiPhoneUI',true) && ($browserUtil->isMobile() == true)
&& (!isset($_GET['mode']) || $_GET['mode'] != 'desktop')
&& (!isset($_SESSION['mode']) || !in_array($_SESSION['displayMode'],array('desktop')))) {
$context->setProperty('blog.displaymode','mobile');
if ($uri->uri['interfaceType'] == 'blog') {
$uri->uri['interfaceType'] = 'mobile';
Expand Down

0 comments on commit aef0b91

Please sign in to comment.