Skip to content

Commit

Permalink
actually fixed mail subject
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg committed Sep 27, 2015
1 parent aa2b339 commit 659053e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions system/modules/sharebuttons/classes/ShareButtons.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,11 @@ public static function createShareButtons( $networks, $theme = self::DEFAULT_THE
$objButtonsTemplate->theme = $theme;
$objButtonsTemplate->image = rawurlencode( $image );
$objButtonsTemplate->description = rawurlencode( strip_tags( $description ?: $objPage->description ) );
$objButtonsTemplate->lang = $GLOBALS['TL_LANG']['sharebuttons'];
$objButtonsTemplate->lang['mail_subject'] = rawurlencode( $GLOBALS['TL_LANG']['sharebuttons']['mail_subject'] );

// add translations to template
$translations = $GLOBALS['TL_LANG']['sharebuttons'];
$translations['mail_subject'] = rawurlencode( $translations['mail_subject'] );
$objButtonsTemplate->lang = $translations;

// insert CSS if necessary
if( $theme )
Expand Down

0 comments on commit 659053e

Please sign in to comment.