Fix for contributions only CRM-12610
handle global variable $language not being set, restructure code a bit
CRM-12667

----------------------------------------
* CRM-12667: Tell a Friend causes error: "You do not have permission to access this page"
  http://issues.civicrm.org/jira/browse/CRM-12667
CRM-12667

----------------------------------------
* CRM-12667: Tell a Friend causes error: "You do not have permission to access this page"
  http://issues.civicrm.org/jira/browse/CRM-12667
Merge pull request #809 from dlobo/CRM-12667

CRM-12667
Merge pull request #808 from dlobo/NoticeFixes

handle global variable $language not being set, restructure code a bit
Merge pull request #795 from colemanw/is_test

Fix for contributions only CRM-12610