Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use `Input::get()` in the `share/index.php` file (see #4333)

  • Loading branch information...
commit 43ef0e544b913073f187638e86b2dde23e03f8f8 1 parent c6818ab
@leofeyer leofeyer authored
Showing with 9 additions and 9 deletions.
  1. +8 −8 share/index.php
  2. +1 −1  system/modules/core/languages/de/default.php
View
16 share/index.php
@@ -21,10 +21,10 @@
/**
* Facebook
*/
-if ($objInput->get('p') == 'facebook')
+if (Input::get('p') == 'facebook')
{
- $query = '?u=' . rawurlencode($objInput->get('u'));
- $query .= '&t=' . rawurlencode($objInput->get('t'));
+ $query = '?u=' . rawurlencode(Input::get('u'));
+ $query .= '&t=' . rawurlencode(Input::get('t'));
$query .= '&display=popup';
$query .= '&redirect_uri=http%3A%2F%2Fwww.facebook.com';
header('Location: http://www.facebook.com/sharer/sharer.php' . $query);
@@ -35,10 +35,10 @@
/**
* Twitter
*/
-elseif ($objInput->get('p') == 'twitter')
+elseif (Input::get('p') == 'twitter')
{
- $query = '?url=' . rawurlencode($objInput->get('u'));
- $query .= '&text=' . rawurlencode($objInput->get('t'));
+ $query = '?url=' . rawurlencode(Input::get('u'));
+ $query .= '&text=' . rawurlencode(Input::get('t'));
header('Location: http://twitter.com/share' . $query);
exit;
}
@@ -47,9 +47,9 @@
/**
* Google Plus
*/
-elseif ($objInput->get('p') == 'gplus')
+elseif (Input::get('p') == 'gplus')
{
- $query = '?url=' . rawurlencode($objInput->get('u'));
+ $query = '?url=' . rawurlencode(Input::get('u'));
header('Location: https://plus.google.com/share' . $query);
exit;
}
View
2  system/modules/core/languages/de/default.php
@@ -93,7 +93,7 @@
$GLOBALS['TL_LANG']['CTE']['toplink'] = array('Top-Link', 'Erzeugt einen Link zum Seitenanfang.');
$GLOBALS['TL_LANG']['CTE']['media'] = 'Media-Elemente';
$GLOBALS['TL_LANG']['CTE']['image'] = array('Bild', 'Erzeugt ein einzelnes Bild.');
-$GLOBALS['TL_LANG']['CTE']['gallery'] = array('Galerie', 'Erzeugt eine Lightbox Bildergalerie.');
+$GLOBALS['TL_LANG']['CTE']['gallery'] = array('Galerie', 'Erzeugt eine Lightbox-Bildergalerie.');
$GLOBALS['TL_LANG']['CTE']['player'] = array('Video/Audio', 'Erzeugt einen Video- bzw. Audio-Player.');
$GLOBALS['TL_LANG']['CTE']['files'] = 'Datei Elemente';
$GLOBALS['TL_LANG']['CTE']['download'] = array('Download', 'Erzeugt einen Link zum Download einer Datei.');
Please sign in to comment.
Something went wrong with that request. Please try again.