mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
additional commit for r10958
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.1@10967 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
9d9b6f1c12
commit
578008f085
1 changed files with 17 additions and 2 deletions
|
|
@ -559,9 +559,24 @@
|
|||
|
||||
function _getRssThumbnail($content)
|
||||
{
|
||||
@preg_match('@<img[^>]+src *= *(?:"(.+)"|\'(.+)\'|([^ ]+))@', $content, $matches);
|
||||
@preg_match('@<img[^>]+src\s*=\s*(?:"(.+)"|\'(.+)\'|([^\s>(?:/>)]+))@', $content, $matches);
|
||||
|
||||
return $matches[1];
|
||||
if($matches[1])
|
||||
{
|
||||
return $matches[1];
|
||||
}
|
||||
elseif($matches[2])
|
||||
{
|
||||
return $matches[2];
|
||||
}
|
||||
elseif($matches[3])
|
||||
{
|
||||
return $matches[3];
|
||||
}
|
||||
else
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
function _getTrackbackItems($args){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue