News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

vmextendedplugin.php fix - improper a class property and a method declaration

Started by Gruz, October 19, 2011, 00:53:52 AM

Previous topic - Next topic

Gruz

VM 1.9.8 i (updated from 1.9.8 G->H->I)
Sample data installed
J! 1.7.1
Linux
PHP 5.3.5



Here is an abstract class:
administrator/components/com_virtuemart/helpers/vmextendedplugin.php
abstract class VmExtendedPlugin extends JPlugin {

Here are the problems:

private $_name = '';
...
private function getName() {


Both must be protected to be posiible to be inherited. I met a problem when experimenting with an extended plugin and getting fatal errors.

So it must be:

protected $_name = '';

protected function getName() {


FIXED in newer versions
Your installable language for VM2: http://gruz.org.ua/virtuemart-language-files.html

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/