Author Topic: vmextendedplugin.php fix - improper a class property and a method declaration  (Read 2054 times)

Gruz

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 159
  • Copyleft (є) all rights reversed
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
Your installable language for VM2: http://gruz.org.ua/virtuemart-language-files.html

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10076
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
thanks,
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/