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

V1.7: Fix some PHP warnings

parent a8a2508b
No related branches found
No related tags found
No related merge requests found
BASE=downloads_for_sale
PLUGINTYPE=vmcustom
VERSION=1.6
VERSION=1.7
PLUGINFILES=$(BASE).php $(BASE).script.php $(BASE).xml index.html
TRANSLATIONS=$(call wildcard,language/*/*.plg_$(PLUGINTYPE)_$(BASE).*ini)
INDEXFILES=$(BASE)/index.html language/index.html $(call wildcard,language/*/index.html)
ELEMENTS=$(call wildcard,elements/*.php) elements/index.html
FIELDS=$(call wildcard,fields/*.php) fields/index.html
TMPLFILES=$(call wildcard,$(BASE)/tmpl/*.php) $(BASE)/index.html $(BASE)/tmpl/index.html
ASSETS=$(call wildcard,$(BASE)/assets/*.png) $(call wildcard,$(BASE)/assets/*.css) $(BASE)/assets/index.html
ZIPFILE=plg_$(PLUGINTYPE)_$(BASE)_v$(VERSION).zip
......@@ -14,7 +15,7 @@ ZIPFILE=plg_$(PLUGINTYPE)_$(BASE)_v$(VERSION).zip
zip: $(PLUGINFILES) $(TRANSLATIONS) $(ELEMENTS) $(TMPLFILES)
@echo "Packing all files into distribution file $(ZIPFILE):"
@zip -r $(ZIPFILE) $(PLUGINFILES) $(TRANSLATIONS) $(ELEMENTS) $(INDEXFILES) $(TMPLFILES) $(ASSETS)
@zip -r $(ZIPFILE) $(PLUGINFILES) $(TRANSLATIONS) $(ELEMENTS) $(FIELDS) $(INDEXFILES) $(TMPLFILES) $(ASSETS)
clean:
rm -f $(ZIPFILE)
......@@ -627,8 +627,8 @@ class plgVmCustomDownloads_for_Sale extends vmCustomPlugin {
return true;
}
function plgVmSetOnTablePluginParamsCustom($name, $id, &$table,$xParams){
return $this->setOnTablePluginParams($name, $id, $table, $xParams);
function plgVmSetOnTablePluginParamsCustom($name, $id, &$table){
return $this->setOnTablePluginParams($name, $id, $table);
}
......
......@@ -46,7 +46,7 @@ class plgVmCustomDownloads_for_SaleInstallerScript
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 = "downloads_for_sale" and folder = "vmcustom"');
$db->query();
......
......@@ -6,7 +6,7 @@
<authorUrl>http://www.open-tools.net/</authorUrl>
<copyright>Copyright (C) 2013 Reinhold Kainhofer. All rights reserved.</copyright>
<license>http://www.gnu.org/licenses/gpl.html GNU/GPL v3+</license>
<version>1.6</version>
<version>1.7</version>
<description>VMCUSTOM_DLSALE_DESC</description>
<files>
<filename plugin="downloads_for_sale">downloads_for_sale.php</filename>
......
......@@ -12,7 +12,7 @@
defined('_JEXEC') or die();
if(JFile::exists(VMDLSALE_PLUGINPATH.DS.'downloads_for_sale'.DS.'assets'.DS.'downloads_for_sale.css')) {
$doc =& JFactory::getDocument();
$doc = JFactory::getDocument();
$doc->addStyleSheet(JURI::root().VMDLSALE_PLUGINWEBROOT.'/downloads_for_sale/assets/downloads_for_sale.css');
}
?>
......
......@@ -11,7 +11,7 @@
defined('_JEXEC') or die();
if(JFile::exists(VMDLSALE_PLUGINPATH.DS.'downloads_for_sale'.DS.'assets'.DS.'downloads_for_sale.css')) {
$doc =& JFactory::getDocument();
$doc = JFactory::getDocument();
$doc->addStyleSheet(JURI::root().VMDLSALE_PLUGINWEBROOT.'/downloads_for_sale/assets/downloads_for_sale.css');
}
?>
......
......@@ -12,7 +12,7 @@
defined('_JEXEC') or die();
if(JFile::exists(VMDLSALE_PLUGINPATH.DS.'downloads_for_sale'.DS.'assets'.DS.'downloads_for_sale.css')) {
$doc =& JFactory::getDocument();
$doc = JFactory::getDocument();
$doc->addStyleSheet(JURI::root().VMDLSALE_PLUGINWEBROOT.'/downloads_for_sale/assets/downloads_for_sale.css');
}
?>
......
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment