Skip to content
Snippets Groups Projects
Commit 6c0892bd authored by alvaro's avatar alvaro
Browse files

Fixed problems with service module when serving no html content

Fixed  bug in googlemap filter
parent e46e3dfb
No related branches found
No related tags found
No related merge requests found
......@@ -27,9 +27,9 @@ class ServiceModule extends abstractModule{
}
return array($modelFile, $viewFile);
}elseif(file_exists($lodspk['model'].'queries')){
if($extension != 'html'){$lodspk['resultRdf'] = true;}
$modelFile = $lodspk['model'].'queries';
if(!file_exists($lodspk['view'])){
$lodspk['resultRdf'] = true;
$viewFile = null;
}else{
$viewFile = $lodspk['view'];
......
......@@ -50,7 +50,7 @@ class Haanga_Extension_Filter_Googlemaps{
$pre = "<div id='map_canvas_".$randId."' style='width: ".$w."px; height: ".$h."px'></div><script type='text/javascript'
src='http://maps.googleapis.com/maps/api/js?sensor=false'></script>
<script type='text/javascript'>
<![CDATA[
//<![CDATA[
function initialize() {
var myOptions = {
zoom: 4,
......@@ -89,7 +89,7 @@ class Haanga_Extension_Filter_Googlemaps{
}
google.maps.event.addDomListener(window, 'load', initialize);
]]>
//]]>
</script>";
return $pre;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment