Skip to content

Commit

Permalink
Pass current site to get_current_site function.
Browse files Browse the repository at this point in the history
Fixes a PHP warning.
  • Loading branch information
beastaugh committed Nov 1, 2011
1 parent 6e4c499 commit faae642
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/templates/credits.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<div class="primary content">
<p><?php _e('Powered by <a href="http://wordpress.org/">WordPress</a> and <a href="http://tarskitheme.com/">Tarski</a>', 'tarski');
if (is_multisite()) {
$current_site = get_current_site_name();
$site = get_current_site_name(get_current_site());

printf(__(' | Hosted by %s', 'tarski'),
'<a href="http://' .
$current_site->domain .
$current_site->path .
'">' . $current_site->site_name . '</a>');
$site->domain .
$site->path .
'">' . $site->site_name . '</a>');
} ?></p>
</div>

0 comments on commit faae642

Please sign in to comment.