Skip to content

Commit

Permalink
Event has been changed from model to library
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuNls committed Aug 12, 2015
1 parent 78b6505 commit a515b16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions application/config/autoload.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
| $autoload['libraries'] = array('user_agent' => 'ua');
*/

$autoload['libraries'] = array('session', 'database', 'user_agent');
$autoload['libraries'] = array('session', 'database', 'user_agent', 'event');

/*
| -------------------------------------------------------------------
Expand Down Expand Up @@ -131,4 +131,4 @@
| $autoload['model'] = array('first_model' => 'first');
*/

$autoload['model'] = array('user', 'event');
$autoload['model'] = array('user');
11 changes: 3 additions & 8 deletions application/models/Event.php → application/libraries/Event.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php if (!defined('BASEPATH')) {exit('No direct script access allowed');
}
<?php

class Event extends MY_Model {
class Event {

public $CTA_MEASURES = "CTA_MEASURES";
public $CTA_MEASURE_NOW = "CTA_MEASURE_NOW";
Expand Down Expand Up @@ -35,11 +34,7 @@ class Event extends MY_Model {
public $HOME_PAGE_2 = "HOME_PAGE_2";
public $HOME_PAGE_3 = "HOME_PAGE_3";

function __construct() {
parent::__construct();
}

function add($event) {
public function add($event) {

if (ENVIRONMENT === 'production') {
if (isset($_SERVER["HTTP_CF_CONNECTING_IP"])) {
Expand Down

0 comments on commit a515b16

Please sign in to comment.