Fixed gh-467 so that the XML build of fields will work correctly with the new groupedlist field type. Added placeholders to class comments.

This commit is contained in:
2019-08-26 08:54:16 +02:00
parent d2f94d84fa
commit 9fcc5c3930
7 changed files with 41 additions and 15 deletions

View File

@ -361,7 +361,9 @@ abstract class ComponentbuilderHelper
{
// set the correct order
ksort($comment);
return implode(PHP_EOL, $comment);
$replace = array('Foo' => '[[[Plugin_name]]]', '[PACKAGE_NAME]' => '[[[Plugin]]]', '1.0.0' => '[[[plugin.version]]]', '1.0' => '[[[plugin.version]]]');
// now update with JCB placeholders
return str_replace(array_keys($replace), array_values($replace), implode(PHP_EOL, $comment));
}
}
}
@ -5213,6 +5215,9 @@ abstract class ComponentbuilderHelper
&& ($timestamp <= PHP_INT_MAX)
&& ($timestamp >= ~PHP_INT_MAX);
}
// Privacy integration with Joomla Privacy suite
public static function jsonToString($value, $sperator = ", ", $table = null, $id = 'id', $name = 'name')