Skip to content
Permalink
Browse files

Update Partial.php

  • Loading branch information...
bloatware authored and philwareham committed Feb 24, 2019
1 parent e9ebfaa commit 2b71849b38b9d9fc5d22e02ed94dac67dfe06aed
Showing with 3 additions and 2 deletions.
  1. +3 −2 textpattern/vendors/Textpattern/Tag/Syntax/Partial.php
@@ -41,7 +41,7 @@ class Partial
public static function renderYield($atts, $thing = null)
{
global $yield, $txp_yield;
global $yield, $txp_yield, $txp_atts;
extract(lAtts(array(
'name' => '',
@@ -56,8 +56,9 @@ public static function renderYield($atts, $thing = null)
}
if (!isset($inner)) {
$escape = isset($txp_atts['escape']) ? $txp_atts['escape'] : null;
$inner = isset($default) ?
($default === true ? page_url(array('type' => $name)) : $default) :
($default === true ? page_url(array('type' => $name, 'escape' => $escape)) : $default) :
($thing ? parse($thing) : $thing);
}

0 comments on commit 2b71849

Please sign in to comment.
You can’t perform that action at this time.