forked from joomla/Component-Builder
Fixed gh-504 to allow custom code to be included on compilation
This commit is contained in:
parent
2ed53b2a3b
commit
a317ba855f
@ -144,7 +144,7 @@ TODO
|
|||||||
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||||
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
||||||
+ *First Build*: 30th April, 2015
|
+ *First Build*: 30th April, 2015
|
||||||
+ *Last Build*: 16th December, 2019
|
+ *Last Build*: 23rd December, 2019
|
||||||
+ *Version*: 2.10.9
|
+ *Version*: 2.10.9
|
||||||
+ *Copyright*: Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved.
|
+ *Copyright*: Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved.
|
||||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
|
@ -144,7 +144,7 @@ TODO
|
|||||||
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||||
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
||||||
+ *First Build*: 30th April, 2015
|
+ *First Build*: 30th April, 2015
|
||||||
+ *Last Build*: 16th December, 2019
|
+ *Last Build*: 23rd December, 2019
|
||||||
+ *Version*: 2.10.9
|
+ *Version*: 2.10.9
|
||||||
+ *Copyright*: Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved.
|
+ *Copyright*: Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved.
|
||||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
|
@ -6387,7 +6387,7 @@ class Get
|
|||||||
// update the name if it has dynamic values
|
// update the name if it has dynamic values
|
||||||
$module->code_name = ComponentbuilderHelper::safeClassFunctionName($module->name);
|
$module->code_name = ComponentbuilderHelper::safeClassFunctionName($module->name);
|
||||||
// set official name
|
// set official name
|
||||||
$module->official_name = ucwords($module->name);
|
$module->official_name = ComponentbuilderHelper::safeString($module->name, 'W');
|
||||||
// set langPrefix
|
// set langPrefix
|
||||||
$this->langPrefix = 'MOD_' . strtoupper($module->code_name);
|
$this->langPrefix = 'MOD_' . strtoupper($module->code_name);
|
||||||
// set lang prefix
|
// set lang prefix
|
||||||
@ -7975,7 +7975,7 @@ class Get
|
|||||||
// get the GUI target details
|
// get the GUI target details
|
||||||
$query = explode('.', trim($first_line, '.'));
|
$query = explode('.', trim($first_line, '.'));
|
||||||
// only continue if we have 3 values in the query
|
// only continue if we have 3 values in the query
|
||||||
if (is_array($query) && count($query) == 3)
|
if (is_array($query) && count($query) >= 3)
|
||||||
{
|
{
|
||||||
// cleanup the newlines around the code
|
// cleanup the newlines around the code
|
||||||
$code = trim(str_replace($first_line, '', $code), PHP_EOL) . PHP_EOL;
|
$code = trim(str_replace($first_line, '', $code), PHP_EOL) . PHP_EOL;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<extension type="component" version="3.2" method="upgrade">
|
<extension type="component" version="3.2" method="upgrade">
|
||||||
<name>COM_COMPONENTBUILDER</name>
|
<name>COM_COMPONENTBUILDER</name>
|
||||||
<creationDate>16th December, 2019</creationDate>
|
<creationDate>23rd December, 2019</creationDate>
|
||||||
<author>Llewellyn van der Merwe</author>
|
<author>Llewellyn van der Merwe</author>
|
||||||
<authorEmail>llewellyn@joomlacomponentbuilder.com</authorEmail>
|
<authorEmail>llewellyn@joomlacomponentbuilder.com</authorEmail>
|
||||||
<authorUrl>http://www.joomlacomponentbuilder.com</authorUrl>
|
<authorUrl>http://www.joomlacomponentbuilder.com</authorUrl>
|
||||||
|
Loading…
Reference in New Issue
Block a user