Skip to content
Snippets Groups Projects
Commit 89920ad8 authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

Fix php warnings

parent 5572c99b
Branches
Tags
No related merge requests found
......@@ -53,7 +53,7 @@ class plgVmShipmentRulesAwoCouponInstallerScript
public function install(JAdapterInstance $adapter)
{
// enabling plugin upon installation
$db =& JFactory::getDBO();
$db = JFactory::getDBO();
$db->setQuery('update #__extensions set enabled = 1 where type = "plugin" and element = "'.$pluginname.'" and folder = "'.$plugintype.'"');
$db->query();
......
......@@ -49,7 +49,7 @@ class plgVmShipmentRulesRegexpInstallerScript
public function install(JAdapterInstance $adapter)
{
// enabling plugin upon installation
$db =& JFactory::getDBO();
$db = JFactory::getDBO();
$db->setQuery('update #__extensions set enabled = 1 where type = "plugin" and element = "regexp" and folder = "vmshipmentrules"');
$db->query();
......
......@@ -49,7 +49,7 @@ class plgVmShipmentRulesYOUR_PLUGIN_NAMEInstallerScript
public function install(JAdapterInstance $adapter)
{
// enabling plugin upon installation
$db =& JFactory::getDBO();
$db = JFactory::getDBO();
$db->setQuery('update #__extensions set enabled = 1 where type = "plugin" and element = "YOUR_PLUGIN_NAME" and folder = "vmshipmentrules"');
$db->query();
......
......@@ -46,7 +46,7 @@ class plgVmShipmentRules_ShippingInstallerScript
public function install(JAdapterInstance $adapter)
{
// enabling plugin
$db =& JFactory::getDBO();
$db = JFactory::getDBO();
$db->setQuery('update #__extensions set enabled = 1 where type = "plugin" and element = "rules_shipping" and folder = "vmshipment"');
$db->query();
......
......@@ -46,7 +46,7 @@ class plgVmShipmentRules_Shipping_AdvancedInstallerScript
public function install(JAdapterInstance $adapter)
{
// enabling plugin
$db =& JFactory::getDBO();
$db = JFactory::getDBO();
$db->setQuery('update #__extensions set enabled = 1 where type = "plugin" and element = "rules_shipping_advanced" and folder = "vmshipment"');
$db->query();
......
......@@ -174,8 +174,6 @@ class plgVmShipmentRules_Shipping_Base extends vmPSPlugin {
$values['shipment_name'] = $this->renderPluginName ($method);
$values['rule_name'] = $method->rule_name;
// $values['order_weight'] = $this->getOrderWeight ($cart, $method->weight_unit);
// $values['order_articles'] = $this->getOrderArticles ($cart);
// $values['order_products'] = $this->getOrderProducts ($cart);
$values['shipment_weight_unit'] = $method->weight_unit;
$values['shipment_cost'] = $method->cost;
$values['tax_id'] = $method->tax_id;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment