Assembla home | Assembla project page
 

Changeset 283

Show
Ignore:
Timestamp:
09/05/08 02:02:41 (3 months ago)
Author:
tobias382
Message:

Fixes #63 Updated expected PHP manual syntax in the Php plugin

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Phergie/Plugin/Php.php

    r278 r283  
    8080        if (!isset($this->cache[$name])) { 
    8181            $tmp = file_get_contents('http://php.net/manual/en/function.' . $name . '.php'); 
    82             if (!$this->errorStatus && strpos($tmp, '<p class="refpurpose dc-title">') !== false) { 
     82            if (!$this->errorStatus && strpos($tmp, '<p class="refpurpose">') !== false) { 
    8383               $contents = '[ ' . Phergie_Plugin_TinyUrl::get('http://php.net/' . $name) . ' ] '; 
    8484               if (preg_match('/<div class="methodsynopsis dc-description">(.*?)<\/div>/mis', $tmp, $m)) { 
    8585                  $contents .= $this->decode($m[1]); 
    8686               } 
    87                if (preg_match('/<p class="refpurpose dc-title">(.*?)<\/p>/mis', $tmp, $m)) { 
     87               if (preg_match('/<p class="refpurpose">(.*?)<\/p>/mis', $tmp, $m)) { 
    8888                  $m = explode('-', $this->decode($m[1]), 2); 
    89                   $contents .= ' - ' . trim($m[1]); 
     89                  $contents .= ' ' . trim($m[1]); 
    9090               } 
    9191               $contents = trim(str_replace(' ,', ',', $contents));