Skip to content

Commit

Permalink
txp_tag: normalises $_POST value
Browse files Browse the repository at this point in the history
  • Loading branch information
makss committed Oct 15, 2016
1 parent 1019d64 commit cb0acc2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions textpattern/include/txp_tag.php
Expand Up @@ -2176,7 +2176,7 @@ function tag_link_to_home()


extract($atts); extract($atts);


$linktext = isset($_POST['linktext']) ? $_POST['linktext'] : gTxt('tag_home'); $linktext = isset($_POST['linktext']) ? ps('linktext') : gTxt('tag_home');


$out = $this->tagbuildForm( $out = $this->tagbuildForm(
$this->startblock. $this->startblock.
Expand Down Expand Up @@ -2208,7 +2208,7 @@ function tag_link_to_next()


extract($atts); extract($atts);


$linktext = isset($_POST['linktext']) ? $_POST['linktext'] : '<txp:next_title />'; $linktext = isset($_POST['linktext']) ? ps('linktext') : '<txp:next_title />';


$out = $this->tagbuildForm( $out = $this->tagbuildForm(
$this->startblock. $this->startblock.
Expand Down Expand Up @@ -2240,7 +2240,7 @@ function tag_link_to_prev()


extract($atts); extract($atts);


$linktext = isset($_POST['linktext']) ? $_POST['linktext'] : '<txp:prev_title />'; $linktext = isset($_POST['linktext']) ? ps('linktext') : '<txp:prev_title />';


$out = $this->tagbuildForm( $out = $this->tagbuildForm(
$this->startblock. $this->startblock.
Expand Down Expand Up @@ -2339,7 +2339,7 @@ function tag_linklist()


function tag_newer() function tag_newer()
{ {
$linktext = isset($_POST['linktext']) ? $_POST['linktext'] : '<txp:text item="newer" />'; $linktext = isset($_POST['linktext']) ? ps('linktext') : '<txp:text item="newer" />';


$out = $this->tagbuildForm( $out = $this->tagbuildForm(
$this->startblock. $this->startblock.
Expand Down Expand Up @@ -2372,7 +2372,7 @@ function tag_next_title()


function tag_older() function tag_older()
{ {
$linktext = isset($_POST['linktext']) ? $_POST['linktext'] : '<txp:text item="older" />'; $linktext = isset($_POST['linktext']) ? ps('linktext') : '<txp:text item="older" />';


$out = $this->tagbuildForm( $out = $this->tagbuildForm(
$this->startblock. $this->startblock.
Expand Down Expand Up @@ -2476,7 +2476,7 @@ function tag_permlink()


extract($atts); extract($atts);


$linktext = isset($_POST['linktext']) ? $_POST['linktext'] : '<txp:title />'; $linktext = isset($_POST['linktext']) ? ps('linktext') : '<txp:title />';


$out = $this->tagbuildForm( $out = $this->tagbuildForm(
$this->startblock. $this->startblock.
Expand Down

0 comments on commit cb0acc2

Please sign in to comment.