Code reworks: replaced hardcoded network text with the corresponding constants.

This commit is contained in:
Michael Vogel 2015-04-11 22:14:56 +02:00
parent dea1b067bd
commit 0e895e24f7
7 changed files with 21 additions and 18 deletions

View file

@ -920,7 +920,7 @@ function micropro($contact, $redirect = false, $class = '', $textmode = false) {
if($redirect) {
$a = get_app();
$redirect_url = $a->get_baseurl() . '/redir/' . $contact['id'];
if(local_user() && ($contact['uid'] == local_user()) && ($contact['network'] === 'dfrn')) {
if(local_user() && ($contact['uid'] == local_user()) && ($contact['network'] === NETWORK_DFRN)) {
$redir = true;
$url = $redirect_url;
$sparkle = ' sparkle';