Changeset 1113233
- Timestamp:
- 03/15/2015 04:33:57 PM (11 years ago)
- Location:
- plugins/trunk
- Files:
-
- 2 edited
-
plugins.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
plugins/trunk/plugins.php
r1113226 r1113233 5 5 Plugin URI: http://marto.lazarov.org/plugins/plugins 6 6 Description: List wordpress contributor plugins and their stats 7 Version: 3.0. 07 Version: 3.0.1 8 8 Author: mlazarov 9 9 Author URI: http://marto.lazarov.org/ … … 112 112 function parseUsingDom($html,$id){ 113 113 $dom = new DOMDocument; 114 $dom->loadHTML($html);114 @$dom->loadHTML($html); 115 115 $xpath = new DOMXPath($dom); 116 116 … … 125 125 $slug = $m[1]; 126 126 $name = trim($nodes->item(1)->textContent); 127 $dls = trim($nodes->item(3)->textContent); 127 $dls_text = trim($nodes->item(3)->textContent); 128 preg_match('#([0-9,]+) downloads#',$dls_text,$m); 129 $dls = $m[1]; 128 130 129 131 $this->settings[$id]['plugins'][$slug]['name'] = $name; -
plugins/trunk/readme.txt
r1113226 r1113233 26 26 27 27 == Changelog == 28 = 3.0. 0=28 = 3.0.1 = 29 29 * Adding new html parser method (using dom if available) 30 30
Note: See TracChangeset
for help on using the changeset viewer.