Some optimization
This commit is contained in:
parent
71d9c95faf
commit
ce0a16df01
|
@ -594,6 +594,9 @@ class Item extends BaseObject {
|
||||||
$tags = $this->get_data_value('tag');
|
$tags = $this->get_data_value('tag');
|
||||||
if(strpos($tags, '@[url') !== FALSE) {
|
if(strpos($tags, '@[url') !== FALSE) {
|
||||||
// We have at least one @ tag
|
// We have at least one @ tag
|
||||||
|
$this->set_template('wall2wall');
|
||||||
|
$this->wall_to_wall = true;
|
||||||
|
|
||||||
$matches = array();
|
$matches = array();
|
||||||
preg_match_all('/\@\[url=([^\]]+)\]([^\[]+)\[\/url\]/', $tags, $matches, PREG_SET_ORDER);
|
preg_match_all('/\@\[url=([^\]]+)\]([^\[]+)\[\/url\]/', $tags, $matches, PREG_SET_ORDER);
|
||||||
|
|
||||||
|
@ -608,8 +611,6 @@ class Item extends BaseObject {
|
||||||
$this->owner_url = zrl($r[0]['url']);
|
$this->owner_url = zrl($r[0]['url']);
|
||||||
$this->owner_name = $r[0]['name'];
|
$this->owner_name = $r[0]['name'];
|
||||||
$this->owner_photo = $r[0]['photo'];
|
$this->owner_photo = $r[0]['photo'];
|
||||||
$this->set_template('wall2wall');
|
|
||||||
$this->wall_to_wall = true;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -620,8 +621,6 @@ class Item extends BaseObject {
|
||||||
$this->owner_name = $matches[0][2];
|
$this->owner_name = $matches[0][2];
|
||||||
// Use the nosign
|
// Use the nosign
|
||||||
$this->owner_photo = $a->get_baseurl .'/images/nosign.jpg';
|
$this->owner_photo = $a->get_baseurl .'/images/nosign.jpg';
|
||||||
$this->set_template('wall2wall');
|
|
||||||
$this->wall_to_wall = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue