1
1
Fork 0

Some optimization

This commit is contained in:
Domovoy 2012-08-24 04:48:49 +02:00
parent 71d9c95faf
commit ce0a16df01

View file

@ -594,6 +594,9 @@ class Item extends BaseObject {
$tags = $this->get_data_value('tag');
if(strpos($tags, '@[url') !== FALSE) {
// We have at least one @ tag
$this->set_template('wall2wall');
$this->wall_to_wall = true;
$matches = array();
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_name = $r[0]['name'];
$this->owner_photo = $r[0]['photo'];
$this->set_template('wall2wall');
$this->wall_to_wall = true;
break;
}
}
@ -620,8 +621,6 @@ class Item extends BaseObject {
$this->owner_name = $matches[0][2];
// Use the nosign
$this->owner_photo = $a->get_baseurl .'/images/nosign.jpg';
$this->set_template('wall2wall');
$this->wall_to_wall = true;
}
}
}