Changeset 1149501
- Timestamp:
- 04/29/2015 08:55:43 PM (11 years ago)
- Location:
- social-metrics-tracker/tags/1.5.2
- Files:
-
- 2 edited
-
data-sources/FacebookPublicUpdater.class.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
social-metrics-tracker/tags/1.5.2/data-sources/FacebookPublicUpdater.class.php
r1149298 r1149501 40 40 if (!is_string($this->updater->data)) return 0; 41 41 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 43 46 $wrapper_start = '<span id="u_0_2"><span>'; 44 47 $wrapper_end = ' people like this.</span>'; … … 47 50 $end = strpos($this->updater->data, $wrapper_end, $start); 48 51 49 // Safety check52 // If the data was not found in the result 50 53 if ($start === false || $end === false) return 0; 51 54 … … 53 56 $match = substr($this->updater->data, $start+strlen($wrapper_start), $end - $start - strlen($wrapper_start)); 54 57 55 // Safety check58 // If the substring task failed 56 59 if ($match === false) return 0; 57 60 -
social-metrics-tracker/tags/1.5.2/readme.txt
r1149298 r1149501 99 99 = 1.5.2 = 100 100 * 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 101 102 102 103 = 1.5.1 =
Note: See TracChangeset
for help on using the changeset viewer.