Skip to content

Commit

Permalink
Fix installer
Browse files Browse the repository at this point in the history
  • Loading branch information
st3ph committed Mar 9, 2015
1 parent 2c18997 commit 508b8f2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/Config/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@


Configure::write('debug', 0);
Configure::write('mushraider', array('version' => '1.5.2.1', 'date' => '2015-03-09'));
Configure::write('mushraider', array('version' => '1.5.2.2', 'date' => '2015-03-10'));

/**
* Configure the Error handler used to handle errors for your application. By default
Expand Down
2 changes: 1 addition & 1 deletion app/Controller/AppController.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* @link http://book.cakephp.org/2.0/en/controllers.html#the-app-controller
*/
class AppController extends Controller {
public $components = array('Session', 'Cookie', 'Lang', 'Tools', 'Patcher', 'Tour');
public $components = array('Session', 'Cookie', 'Lang', 'Tools', 'Patcher');
var $uses = array('User', 'Role', 'Setting', 'Character');

var $user = null;
Expand Down
8 changes: 4 additions & 4 deletions app/Controller/Component/TourComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ class TourComponent extends Component {

public function initialize(Controller $controller) {
$this->controller = &$controller;
}

public function startup(Controller $controller) {
$this->controller = &$controller;

$this->tourGuides = json_decode($this->controller->Setting->getOption('tourGuides'), true);

Expand Down Expand Up @@ -58,10 +62,6 @@ public function initialize(Controller $controller) {
)
)
);
}

public function startup(Controller $controller) {
$this->controller = &$controller;

if($this->controller->user && $this->controller->user['User']['can']['full_permissions']) {
if(!empty($this->tourList[$this->controller->name]) && !empty($this->tourList[$this->controller->name][$this->controller->action])) {
Expand Down
2 changes: 1 addition & 1 deletion app/Controller/EventsController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
class EventsController extends AppController {
public $components = array('Emailing', 'Image');
public $components = array('Emailing', 'Image', 'Tour');
var $helpers = array('Sociable.Comment');
var $uses = array('Game', 'Dungeon', 'Event', 'RaidsRole', 'EventsRole', 'EventsCharacter', 'Character', 'EventsTemplate', 'EventsTemplatesRole', 'Report');

Expand Down

0 comments on commit 508b8f2

Please sign in to comment.