Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some small modifications for Joomla 3.6 (plugins) #44

Open
gorgonz opened this issue Nov 27, 2016 · 2 comments
Open

Some small modifications for Joomla 3.6 (plugins) #44

gorgonz opened this issue Nov 27, 2016 · 2 comments

Comments

@gorgonz
Copy link

gorgonz commented Nov 27, 2016

Its quite simple, I would even like to do it myself, but I must find the aprobiate place first of all ;-). All is about the php file:

The line "jimport('joomla.plugin.plugin');" is not neccessary any more

On the other hand, there is a new protected var $autoloadLanguage. Setting it to true will load the language files automatically. I myself would suggest it as default, because multi-language is the standard meanwhile. So you would add some lines right below the class declaration.

Summary of changes (for a content Plugin):

//jimport('joomla.plugin.plugin');

class plgContentMyplugin extends JPlugin {
	/**
	 * Load the language file on instantiation.
	 *
	 * @var    boolean
	 * @since  3.1
	 */
	protected $autoloadLanguage = true;


@gorgonz
Copy link
Author

gorgonz commented Nov 27, 2016

About $autoloadLanguage : Of course the best way would be to offer a flag, if it should be set ;-)

@elkuku
Copy link
Owner

elkuku commented Oct 12, 2017

Hello.. I'm back 😉
Are you still interested in the subject?
I recently created a new repository where all extension templates will live: https://github.com/EasyCreator/templates

Any chance you remember inm which Joomla! version the $autoloadLanguage variable was introduced?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants