public function tweetUrl($msg, $shortenUrls = false) {
        $url = 'http://twitter.com/?status=';
        if ($shortenUrls) {
            $msg = preg_replace_callback(
                '~https?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?~i',
                function ($matches) {
                    $_this = new G_View_Helper_Social();
                    return $_this->tinyUrl($matches[0]);
                },
                $msg
            );
        }
        $url .= urlencode($msg);
        return $url;
    }