public static function getParams($name, $folder)
	{
		$database = \App::get('db');

		// load the params from databse
		$sql = "SELECT params FROM `#__extensions` WHERE folder=" . $database->quote($folder) . " AND element=" . $database->quote($name) . " AND enabled=1";
		$database->setQuery($sql);
		$result = $database->loadResult();

		// params object
		$params = new Registry($result);
		return $params;
	}
public static function getParams($name, $folder)
	{
		$database = \App::get('db');

		// load the params from databse
		$sql = "SELECT params FROM `#__extensions` WHERE folder=" . $database->quote($folder) . " AND element=" . $database->quote($name) . " AND enabled=1";
		$database->setQuery($sql);
		$result = $database->loadResult();

		// params object
		$params = new Registry($result);
		return $params;
	}
public static function getParams ( $ name , $ folder ) { $ database = \ App :: get ( 'db' ) ; // load the params from databse $ sql = "SELECT params FROM `#__extensions` WHERE folder=" . $ database -> quote ( $ folder ) . " AND element=" . $ database -> quote ( $ name ) . " AND enabled=1" ; $ database -> setQuery ( $ sql ) ; $ result = $ database -> loadResult ( ) ; // params object $ params = new Registry ( $ result ) ; return $ params ; }
Method to get plugin params

@param   string  $name    Plugin name
@param   string  $folder  Plugin folder
@return  object
Method to get plugin params