/** * Get perk setting, will automatically append the perk slug. * * @param mixed $key * @param mixed $settings */ function get_setting($key, $settings = array()) { if (empty($settings)) { $settings = GWPerk::get_perk_settings($this->get_id()); } return gwar($settings, $this->get_id() . "_{$key}"); }