Plugin Directory

Changeset 1113233


Ignore:
Timestamp:
03/15/2015 04:33:57 PM (11 years ago)
Author:
mlazarov
Message:

Versin 3.0.1 - using dom html parser if available

Location:
plugins/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/trunk/plugins.php

    r1113226 r1113233  
    55Plugin URI: http://marto.lazarov.org/plugins/plugins
    66Description: List wordpress contributor plugins and their stats
    7 Version: 3.0.0
     7Version: 3.0.1
    88Author: mlazarov
    99Author URI: http://marto.lazarov.org/
     
    112112        function parseUsingDom($html,$id){
    113113            $dom = new DOMDocument;
    114             $dom->loadHTML($html);
     114            @$dom->loadHTML($html);
    115115            $xpath = new DOMXPath($dom);
    116116
     
    125125                        $slug = $m[1];
    126126                        $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];
    128130                       
    129131                        $this->settings[$id]['plugins'][$slug]['name'] = $name;
  • plugins/trunk/readme.txt

    r1113226 r1113233  
    2626
    2727== Changelog ==
    28 = 3.0.0 =
     28= 3.0.1 =
    2929* Adding new html parser method (using dom if available)
    3030
Note: See TracChangeset for help on using the changeset viewer.