? buymeabeer-not-definie-t.patch
Index: buymeabeer.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/buymeabeer/buymeabeer.module,v
retrieving revision 1.3
diff -u -p -r1.3 buymeabeer.module
--- buymeabeer.module	4 Sep 2008 19:21:17 -0000	1.3
+++ buymeabeer.module	29 Apr 2009 07:11:28 -0000
@@ -7,8 +7,8 @@
  * A Drupal module that allows donations via Paypal to buy beer.
  */
 
-define('BMAB_ANCHOR_TEXT', t('If you liked this post, buy me a beer.'));
-define('BMAB_LINK_TITLE_TEXT', t('Donate a beer or two via Paypal.'));
+define('BMAB_ANCHOR_TEXT', 'If you liked this post, buy me a beer.');
+define('BMAB_LINK_TITLE_TEXT', 'Donate a beer or two via Paypal.');
 
 /**
  * Implementation of hook_menu().
@@ -82,8 +82,8 @@ function buymeabeer_nodeapi(&$node, $op,
  */
 function buymeabeer_paypal_link() {
   $paypal_mail = variable_get('buymeabeer_paypal_mail', '');
-  $anchor_text = variable_get('buymeabeer_anchor_text', BMAB_ANCHOR_TEXT);
-  $title_text = variable_get('buymeabeer_link_title_text', BMAB_LINK_TITLE_TEXT);
+  $anchor_text = variable_get('buymeabeer_anchor_text', t(BMAB_ANCHOR_TEXT));
+  $title_text = variable_get('buymeabeer_link_title_text', t(BMAB_LINK_TITLE_TEXT));
   $href = "https://www.paypal.com/cgi-bin/webscr";
   $query = "cmd=_xclick&business=$paypal_mail&item_name=$title_text";
   $link = l(
@@ -103,4 +103,4 @@ function buymeabeer_paypal_link() {
  */
 function theme_buymeabeer_link($link) {
   return '<div class="buymeabeer">'. $link .'</div>';
-}
\ No newline at end of file
+}
