Changeset 1476

Show
Ignore:
Timestamp:
07/09/11 18:14:14 (23 months ago)
Author:
Torben Brodt
Message:

gmap bbcode: release fix for zoom

Location:
g-map/optionals/de.gmap.wcf.data.message.bbcode.map
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • g-map/optionals/de.gmap.wcf.data.message.bbcode.map/files/lib/data/message/bbcode/MapBBCode.class.php

    r1260 r1476  
    119119        private function show($stream, $zoom) { 
    120120                WCF::getTPL()->assign(array( 
    121                         'bbcodemap_zoom' => $zoom, 
     121                        'bbcodemap_zoom' => intval($zoom), 
    122122                        'bbcodemap_data' => $stream 
    123123                )); 
     
    131131        public function getParsedTag($openingTag, $content, $closingTag, BBCodeParser $parser) { 
    132132         
    133                 $zoom = isset($openingTag['attributes'][0]) ? $openingTag['attributes'][0] : GMAP_ZOOM; 
     133                $zoom = isset($openingTag['attributes'][0]) ? intval($openingTag['attributes'][0]) : 0; 
    134134                $content = explode("\n", StringUtil::unifyNewlines($content)); 
    135135                 
  • g-map/optionals/de.gmap.wcf.data.message.bbcode.map/package.xml

    r1428 r1476  
    66                <packagedescription><![CDATA[This BBCode allows you to add a map with infinite markers to your posting.]]></packagedescription> 
    77                <isunique>1</isunique> 
    8                 <version>3.0.0</version> 
     8                <version>3.1.0</version> 
    99                <date>DATE</date> 
    1010                <plugin>com.woltlab.wcf.data.message.bbcode</plugin> 
     
    3131        </instructions> 
    3232         
     33        <instructions type="update" fromversion="3.0.0"> 
     34                <files>files.tar</files> 
     35                <templates>templates.tar</templates> 
     36        </instructions> 
     37         
    3338        <instructions type="update" fromversion="3.0.0 Beta 1"> 
     39                <files>files.tar</files> 
    3440                <templates>templates.tar</templates> 
    3541        </instructions> 
    3642         
    3743        <instructions type="update" fromversion="2.0.3"> 
     44                <files>files.tar</files> 
    3845                <templates>templates.tar</templates> 
    39                 <files>files.tar</files> 
    4046        </instructions> 
    4147         
  • g-map/optionals/de.gmap.wcf.data.message.bbcode.map/templates/mapBBCode.tpl

    r1425 r1476  
    2626                        gmap.loadMarkers(coordinates); 
    2727                        gmap.showMap(); 
     28                        {if $bbcodemap_zoom}gmap.gmap.setZoom({$bbcodemap_zoom});{/if} 
    2829                } 
    2930        };