Geeklog-Core / geeklog

Geeklog - The Secure CMS.
https://www.geeklog.net
24 stars 19 forks source link

lib-plugins.php bug: Autotag plugin, PHP mode and requires close tag mode, autotag does not works. #973

Closed ivywe closed 4 years ago

ivywe commented 4 years ago

Autotag plugin, PHP mode and requires close tag mode, autotag does not works.

//fix by hiroron 2019/09/24

lib-plugins.php line: 1674 from:

    //See if any tags require close tags
    $tags_requireclose = array_flip(PLG_collectTags('closetag'));

to:

    //See if any tags require close tags
    $tags_requireclose = array();
    $collectclosetags = PLG_collectTags('closetag');
    $i = 0;
    foreach ($collectclosetags as $key => $val) {
        $tags_requireclose[$i] = $key;
        $i++;
    }
eSilverStrike commented 4 years ago

Thanks. I could have sworn this was working before but I checked my autotags testing page and it wasn't allowing autotags with closed tags to be in another autotag with a closed tag.

Ivy can you give me an example of your autotag with the php code so I can add it to my tests?

In the autotags editor you have checked: Requires Close Tag Replace with PHP?

and what is the content you have in the "Replace With"?

Thanks

ivywe commented 4 years ago

example https://github.com/ivywe/geeklog-ivywe/blob/Geeklog2.2/extended/system/custom/phpautotags_l.php

[l:en]English words[/l][j:ja]日本語をここに記述[/l]