s/bestUrl/getUrl/ for notices and microapp objects

This commit is contained in:
Mikael Nordfeldth
2014-04-29 19:46:58 +02:00
parent c1d2f2516a
commit 7d191f8062
35 changed files with 65 additions and 76 deletions

View File

@@ -131,7 +131,7 @@ class NewblogentryAction extends Action
$this->elementEnd('body');
$this->endHTML();
} else {
common_redirect($saved->bestUrl(), 303);
common_redirect($saved->getUrl(), 303);
}
}
}

View File

@@ -68,7 +68,7 @@ class BlogEntryListItem extends NoticeListItemAdapter
}
$out->elementStart('h4', array('class' => 'blog-entry-title'));
$out->element('a', array('href' => $notice->bestUrl()), $entry->title);
$out->element('a', array('href' => $notice->getUrl()), $entry->title);
$out->elementEnd('h4');
// XXX: kind of a hack
@@ -91,7 +91,7 @@ class BlogEntryListItem extends NoticeListItemAdapter
$out->elementEnd('div');
}
$url = ($entry->url) ? $entry->url : $notice->bestUrl();
$url = ($entry->url) ? $entry->url : $notice->getUrl();
$out->element('a',
array('href' => $url,
'class' => 'blog-entry-link'),