View Single Post
  #302 (permalink)  
Old 08-30-2008, 05:24 PM
TheEdge TheEdge is offline
Newbie
 
Join Date: Dec 2007
Posts: 5
Credits: 0
Rep Power: 0
TheEdge is on a distinguished road
Default Re: Project: ionFiles - Joomla Simple File Download

I'm already using ionFiles for Joomla 1.0.x and I wanted to install it on my new site. But I always get this message in the backend


Fatal error: Cannot redeclare getparams() (previously declared in /www/htdocs/v0*****/j15t/administrator/components/com_smf/helper.php:26) in /www/htdocs/v0*****/j15t/administrator/components/com_ionfiles/admin.ionfiles.php on line 1356


This is the code from line 1331 to 1356

Code:
/***************************************************************
// Joomla 1.5/1.0 DB switch for get Params
 ***************************************************************/
function GetParams($method = "POST", $field, $default = "", $params = "", $type = "") {
	if (defined ( '_JEXEC' )) {
		// Change the type from old to new
		if ($params == "_MOS_ALLOWHTML") {
			$params = JREQUEST_ALLOWHTML;
		}
		
		if ($params) {
			$variable = JRequest::getVar ( $field, $default, $method, $type, $params );
		} else {
			$variable = JRequest::getVar ( $field );
		}
	} else {
		if ($method == "POST") {
			$variable = mosGetParam ( $_REQUEST, $field, $default, $params );
		} else {
			$variable = mosGetParam ( $_REQUEST, $field, $default, $params );
		}
	}
	
	return $variable;

}
Reply With Quote