Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VirtueMart
EU Sales Reports for VirtueMart
Commits
2ad077bf
Commit
2ad077bf
authored
Dec 30, 2017
by
Reinhold Kainhofer
Browse files
V0.9: Fix installation issues with VMconfig loading (error message: calling load on null)
parent
3e7b61a4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
2ad077bf
BASE
=
eurecap
PLUGINTYPE
=
vmextended
VERSION
=
0.
8
VERSION
=
0.
9
PLUGINFILES
=
$(BASE)
.php
$(BASE)
.script.php
$(BASE)
.xml index.html
# $(BASE)/
...
...
eurecap.php
View file @
2ad077bf
...
...
@@ -15,6 +15,10 @@ if( !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not
* http://www.open-tools.net
*/
if
(
!
class_exists
(
'VmConfig'
))
{
require
(
JPATH_ADMINISTRATOR
.
'/components/com_virtuemart/helpers/config.php'
);
VmConfig
::
loadConfig
();
}
defined
(
'VMPATH_ADMIN'
)
or
define
(
'VMPATH_ADMIN'
,
JPATH_VM_ADMINISTRATOR
);
defined
(
'VMPATH_PLUGINLIBS'
)
or
define
(
'VMPATH_PLUGINLIBS'
,
JPATH_VM_PLUGINS
);
if
(
!
class_exists
(
'vmExtendedPlugin'
))
require
(
VMPATH_PLUGINLIBS
.
DS
.
'vmextendedplugin.php'
);
...
...
@@ -109,4 +113,4 @@ class plgVmExtendedEuRecap extends vmExtendedPlugin {
}
}
}
\ No newline at end of file
}
eurecap.script.php
View file @
2ad077bf
...
...
@@ -7,8 +7,6 @@ defined('_JEXEC') or die('Restricted access');
* @license GPL v3+, http://www.gnu.org/copyleft/gpl.html
*/
defined
(
'DS'
)
or
define
(
'DS'
,
DIRECTORY_SEPARATOR
);
if
(
!
class_exists
(
'VmConfig'
))
require
(
JPATH_ROOT
.
DS
.
'administrator'
.
DS
.
'components'
.
DS
.
'com_virtuemart'
.
DS
.
'helpers'
.
DS
.
'config.php'
);
class
plgVmExtendedEuRecapInstallerScript
{
...
...
@@ -38,10 +36,18 @@ class plgVmExtendedEuRecapInstallerScript
* @return boolean True on success
*/
public
function
postflight
(
$type
,
$parent
=
null
)
{
if
(
!
class_exists
(
'plgVmExtendedEuRecap'
))
if
(
!
class_exists
(
'plgVmExtendedEuRecap'
))
{
// JPluginHelper::importPlugin('vmextended', 'eurecap');
require
JPATH_ROOT
.
DS
.
'plugins'
.
DS
.
'vmextended'
.
DS
.
'eurecap'
.
DS
.
'eurecap.php'
;
}
if
(
!
class_exists
(
'VmConfig'
))
{
require
(
JPATH_ROOT
.
DS
.
'administrator'
.
DS
.
'components'
.
DS
.
'com_virtuemart'
.
DS
.
'helpers'
.
DS
.
'config.php'
);
VmConfig
::
loadConfig
();
}
$dispatcher
=
new
JDispatcher
();
$config
=
array
(
'name'
=>
'eurecap'
,
'type'
=>
'vmextended'
);
// $plugin = JPluginHelper::importPlugin('vmextended', 'eurecap');
$plugin
=
new
plgVmExtendedEuRecap
(
$dispatcher
,
$config
);
$plugin
->
onInstallCheckAdminMenuEntries
();
// $plugin->plgVmOnStoreInstallPluginTable('extended');
...
...
@@ -98,4 +104,4 @@ class plgVmExtendedEuRecapInstallerScript
// $db->setQuery('DROP TABLE IF EXISTS `#__virtuemart_shopper_plg_ordernumber`;');
// $db->query();
}
}
\ No newline at end of file
}
eurecap.xml
View file @
2ad077bf
...
...
@@ -7,7 +7,7 @@
<authorUrl>
http://www.open-tools.net/
</authorUrl>
<copyright>
Copyright (C) 2015 Reinhold Kainhofer. All rights reserved.
</copyright>
<license>
http://www.gnu.org/licenses/gpl-3.0.html GNU/GPLv3
</license>
<version>
0.
8
</version>
<version>
0.
9
</version>
<releaseDate>
2016-01-01
</releaseDate>
<releaseType>
Update
</releaseType>
<downloadUrl>
http://www.open-tools.net
</downloadUrl>
...
...
releases/plg_vmextended_eurecap_v0.9.zip
0 → 100644
View file @
2ad077bf
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment