VirtueMart Forum

VirtueMart 2 + 3 => Virtuemart Development and bug reports => Topic started by: Gruz on October 19, 2011, 00:53:52 am

Title: vmextendedplugin.php fix - improper a class property and a method declaration
Post by: Gruz on October 19, 2011, 00:53:52 am
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
Code: [Select]
abstract class VmExtendedPlugin extends JPlugin {
Here are the problems:

Code: [Select]
private $_name = '';...
Code: [Select]
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:

Code: [Select]
protected $_name = '';
Code: [Select]
protected function getName() {

FIXED in newer versions
Title: Re: vmextendedplugin.php fix - improper a class property and a method declaration
Post by: Milbo on October 19, 2011, 12:25:31 pm
thanks,