We can do this now if we hard-code the version in a language string.
But it seems like we should be able to get the version number out of
the extension manifest. We have the the $parent object, which is an
instance of JInstallerComponent (in my example). This has a protected
field called manifest that has the old and new versions in it.
Would it make sense either (a) make this public so we could get the
new version with $parent->manifest->getAttribute('version') or (b) add
a getVersion() method to the class? Or maybe there is an easier way to
get the extension version from here?
Has anyone else had this issue? Any thoughts on this will be
appreciated. Thanks.
Mark
Cheers,
Sam Moffatt
http://pasamio.id.au
> --
> You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
> To post to this group, send an email to joomla-...@googlegroups.com.
> To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
>
Cheers,
Sam Moffatt
http://pasamio.id.au
>>> To post to this group, send an email to joomla-dev-cms@googlegroups.com.
>>> To unsubscribe from this group, send email to joomla-dev-cms+unsubscribe@googlegroups.com.
>>> For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
>> To post to this group, send an email to joomla-dev-cms@googlegroups.com.
>> To unsubscribe from this group, send email to joomla-dev-cms+unsubscribe@googlegroups.com.
>> For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
>>
>
> --
> You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
> To post to this group, send an email to joomla-dev-cms@googlegroups.com.
> To unsubscribe from this group, send email to joomla-dev-cms+unsubscribe@googlegroups.com.
>>> To post to this group, send an email to joomla-dev-cms@googlegroups.com.
>>> To unsubscribe from this group, send email to joomla-dev-cms+unsubscribe@googlegroups.com.
>>> For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
>> To post to this group, send an email to joomla-dev-cms@googlegroups.com.
>> To unsubscribe from this group, send email to joomla-dev-cms+unsubscribe@googlegroups.com.
>> For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
>>
>
> --
> You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
> To post to this group, send an email to joomla-dev-cms@googlegroups.com.
> To unsubscribe from this group, send email to joomla-dev-cms+unsubscribe@googlegroups.com.