Closed (fixed)
Project:
Mobile Tools
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jul 2011 at 16:53 UTC
Updated:
17 Oct 2012 at 16:05 UTC
Jump to comment: Most recent file
Comments
Comment #1
okokokok commentedI thought it might have something to do with cache so I turned that off, but it's still acting weird.
This seems a relevant piece of code:
function mobile_tools_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
if ($op == 'load' && mobile_tools_site_type() == 'mobile' && variable_get('mobile_tools_enable_build_mode', 0)) {
$node->build_mode = 'mobile';
}
}
So I suspected a problem with mobile_tools_site_type().
I added a static caching around it and now things work as expected!
Comment #2
okokokok commentedComment #3
okokokok commentedOops. This was working better but it was wrong. I noticed the problem when I actually wanted to start using the buildmode-mobile.
The condition should be:
if ($site_type != NULL) {Comment #4
minoroffense commentedIs the above code correct? If so I can apply it as a patch.
Comment #5
devin carlson commentedThis was fixed as part of #1003732: Improve Mobile Tools performance.