I can't get multisite navigation to work

I am trying to get the multisite navigation to work on this tutorial on Smashing Magazine: http://wp.smashingmagazine.com/2011/11/17/wordpress-multisite-practical-functions-methods/ (halfway down) When I do I get a syntax error looking for a “. Can anyone spot where the issue might be? line 23?

Here is the code:

/**

* Build a list of all websites in a network

*/

function wp_list_sites( $expires = 7200 ) {

if( !is_multisite() ) return false;

// Because the get_blog_list() function is currently flagged as deprecated

// due to the potential for high consumption of resources, we’ll use

// $wpdb to roll out our own SQL query instead. Because the query can be

// memory-intensive, we’ll store the results using the Transients API

if ( false === ( $site_list = get_transient( ‘multisite_site_list’ ) ) ) {

global $wpdb;

$site_list = $wpdb->get_results( $wpdb->prepare(‘SELECT * FROM wp_blogs ORDER BY blog_id’:wink: );

// Set the Transient cache to expire every two hours

set_site_transient( ‘multisite_site_list’, $site_list, $expires );

}

$current_site_url = get_site_url( get_current_blog_id() );

$html = ‘

    ‘ . “n”;

foreach ( $site_list as $site ) {

switch_to_blog( $site->blog_id );

$class = ( home_url() == $current_site_url ) ? ‘ class=”current-site-item”‘ : ”;

$html .= “t” . ‘

  • blog_id . ‘”‘ . $class . ‘>‘ . get_bloginfo(‘name’:wink: . ‘
  • ‘ . “n”;

    restore_current_blog();

    }

    $html .= ‘
    <!–// end #network-menu –>’ . “nn”;

    return $html;

    }