Plugin Directory

Changeset 837102


Ignore:
Timestamp:
01/12/2014 11:48:09 AM (12 years ago)
Author:
rvwoens
Message:

php 5.2 support

Location:
map-pins/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • map-pins/trunk/include/marker.php

    r811030 r837102  
    1010   
    1111    static function update($id,$cols) {
    12         $table_name=static::GetTable();
     12        $table_name=self::GetTable();
    1313        $fsql='';
    1414        foreach($cols as $c=>$v) {
     
    2424   
    2525    static function insert($cols) {
    26         $table_name=static::GetTable();
     26        $table_name=self::GetTable();
    2727        $fsql='';
    2828        foreach($cols as $c=>$v) {
     
    3838   
    3939    static function delete($id) {
    40         $table_name=static::GetTable();
     40        $table_name=self::GetTable();
    4141        $rv = $GLOBALS['wpdb']->query($GLOBALS['wpdb']->prepare("delete from $table_name where id=%d",$id));
    4242        return $rv;             
     
    4444   
    4545    static function find($id) {
    46         $table_name = static::GetTable();
     46        $table_name = self::GetTable();
    4747        $results = $GLOBALS['wpdb']->get_results($GLOBALS['wpdb']->prepare("select * from $table_name where id=%d",$id));
    4848        if ($results)
     
    5252   
    5353    static function all() {
    54         $table_name = static::GetTable();
     54        $table_name = self::GetTable();
    5555        return $GLOBALS['wpdb']->get_results("select * from $table_name order by city"); // order by id desc
    5656    }
  • map-pins/trunk/js/coslib.js

    r811030 r837102  
    99
    1010        } else {
    11             alert("Sorry, deze browser ondersteund geen locatieservice");
     11            alert("Sorry, this browser does not support geolocation");
    1212        }
    1313    };
Note: See TracChangeset for help on using the changeset viewer.