- private function _personal_sql_extra() {
- $myurl = System::baseUrl(true) . '/profile/'. $this->a->user['nickname'];
- $myurl = substr($myurl,strpos($myurl,'://')+3);
- $myurl = str_replace(array('www.','.'),array('','\\.'),$myurl);
- $diasp_url = str_replace('/profile/','/u/',$myurl);
- $sql_extra = sprintf(" AND ( `item`.`author-link` regexp '%s' OR `item`.`tag` regexp '%s' OR `item`.`tag` regexp '%s' ) ",
+ private function personalSqlExtra()
+ {
+ $myurl = System::baseUrl(true) . '/profile/' . self::getApp()->user['nickname'];
+ $myurl = substr($myurl, strpos($myurl, '://') + 3);
+ $myurl = str_replace(['www.', '.'], ['', '\\.'], $myurl);
+ $diasp_url = str_replace('/profile/', '/u/', $myurl);
+ $sql_extra = sprintf(
+ " AND (`item`.`author-link` REGEXP '%s' OR `item`.`tag` REGEXP '%s' OR `item`.`tag` REGEXP '%s') ",