Skip to content

Commit

Permalink
Writing HISTORY
Browse files Browse the repository at this point in the history
  • Loading branch information
bloatware committed Apr 7, 2024
1 parent 306f6c9 commit e8216af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions HISTORY.txt
Expand Up @@ -48,6 +48,9 @@ Changes in 4.9.0 (upcoming)
* Added: Reload language packs from disk.
* Added: Shift+Space shortcut for 'Tab' indent in textareas.
* Added: Input length tooltip when appropriate.
* Added: <txp:date /> tag.
* Added: Global 'variable' attribute.
* Added: 'alias' attribute to <txp:evaluate />.
* Changed: Plugins of all types trigger verify step (with improved security).
* Changed: File Edit panel has the ability to rename and delete files, and
change the download counter value (thanks, adi).
Expand All @@ -62,6 +65,7 @@ Changes in 4.9.0 (upcoming)
* Changed: Category & section description field sizes increased to 1023.
* Changed: <txp:header /> tag requires 'form' privilege.
* Changed: Section-aware default search.
* Changed: Extend character set that can be used in tag/attribute names.
* Developer: Introduce UI class library for building interface components.
* Developer: Tag registration is now mandatory.
* Developer: Some of the lesser-used tags are loaded on demand from their class
Expand Down
6 changes: 2 additions & 4 deletions textpattern/publish/taghandlers.php
Expand Up @@ -3102,7 +3102,7 @@ function if_request($atts, $thing = null)

function txp_eval($atts, $thing = null)
{
global $prefs, $txp_tag, $txp_atts;
global $prefs, $txp_tag, $txp_atts, $variable;
static $xpath = null, $functions = null, $_functions = null,
$tr = array("'" => "',\"'\",'");

Expand Down Expand Up @@ -3158,9 +3158,7 @@ function ($match) use ($_functions) {
);
}

if (isset($alias) && $alias = implode('|', do_list($alias))) {
global $variable;

if (isset($alias) && $alias = implode('|', $alias === true ? array_keys($variable) : do_list($alias))) {
$query = preg_replace_callback('/\$('.$alias.')\b/',
function ($match) use ($variable, $tr) {
$var = isset($variable[$match[1]]) ? $variable[$match[1]] : '';
Expand Down

0 comments on commit e8216af

Please sign in to comment.