[fixed] unused parameter

Forum rules
Only administrators can post or move items here.
Post Reply
bess
Language Partners
Language Partners
Posts: 282
Joined: Thu Dec 18, 2008 9:37 am
Location: Bretagne

[fixed] unused parameter

Post by bess »

in file lib/classes/class.cms_module_smarty_plugin_manager.php

these functions

Code: Select all

public static function remove_by_name($name,$type)
public function _remove_by_name($name,$type)
should be

Code: Select all

public static function remove_by_name($name)
public function _remove_by_name($name)
as the parameter $type is unused.

the diff/fix can be found here : https://github.com/besstiolle/f2/commit ... 4bde895081

(luckily found this one)

these functions are only used in lib/classes/class.CMSModule.php line 301:

Code: Select all

cms_module_smarty_plugin_manager::remove_by_name($name);
Last edited by bess on Sun Apr 19, 2015 6:17 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: [Minor] unused parameter

Post by calguy1000 »

fixed, thanks.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “Closed Issues”