Plugin Directory

Changeset 1149501


Ignore:
Timestamp:
04/29/2015 08:55:43 PM (11 years ago)
Author:
bcole808
Message:

Update to 1.5.2

Location:
social-metrics-tracker/tags/1.5.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • social-metrics-tracker/tags/1.5.2/data-sources/FacebookPublicUpdater.class.php

    r1149298 r1149501  
    4040        if (!is_string($this->updater->data)) return 0;
    4141
    42         // Strings to search for in the result
     42        // If there is only 1 share
     43        if (strpos($this->updater->data, '<span id="u_0_2"><span>One person likes this.</span>') !== false) return 1;
     44
     45        // Strings to search for in the result if there is more than one share
    4346        $wrapper_start = '<span id="u_0_2"><span>';
    4447        $wrapper_end   = ' people like this.</span>';
     
    4750        $end   = strpos($this->updater->data, $wrapper_end, $start);
    4851
    49         // Safety check
     52        // If the data was not found in the result
    5053        if ($start === false || $end === false) return 0;
    5154
     
    5356        $match = substr($this->updater->data, $start+strlen($wrapper_start), $end - $start - strlen($wrapper_start));
    5457
    55         // Safety check
     58        // If the substring task failed
    5659        if ($match === false) return 0;
    5760
  • social-metrics-tracker/tags/1.5.2/readme.txt

    r1149298 r1149501  
    9999= 1.5.2 =
    100100* Fixed an issue where Facebook stats were not collected for some websites in languages other than English
     101* Fixed an issue where a Facebook count of one was reported as zero
    101102
    102103= 1.5.1 =
Note: See TracChangeset for help on using the changeset viewer.