<?php
class ControllerExtensionModuleybuy extends Controller {
	public function index($setting) {
		$this->load->language('extension/module/ybuy');

		$data['heading_title'] = $this->language->get('heading_title');

		if ($this->request->server['HTTPS']) {
			$data['code'] = str_replace('http', 'https', html_entity_decode($this->config->get('ybuy_code')));
		} else {
			$data['code'] = html_entity_decode($this->config->get('ybuy_code'));
		}

		return $this->load->view('extension/module/ybuy', $data);
	}
}