Skip to content

Commit

Permalink
Fix for common code
Browse files Browse the repository at this point in the history
  • Loading branch information
s-nakajima committed Apr 24, 2015
1 parent 2bfca5c commit 66a7c0d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 19 deletions.
17 changes: 0 additions & 17 deletions Controller/BbsesAppController.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,21 +99,4 @@ public function initBbs($contains = []) {

$this->set('userId', (int)$this->Auth->user('id'));
}

/**
* throw bad request
*
* @return void
* @throws BadRequestException
*/
public function throwBadRequest() {
if ($this->request->is('ajax')) {
$this->renderJson(
['error' => ['validationErrors' => ['status' => __d('net_commons', 'Invalid request.')]]],
__d('net_commons', 'Bad Request'), 400
);
} else {
throw new BadRequestException(__d('net_commons', 'Bad Request'));
}
}
}
1 change: 0 additions & 1 deletion Controller/BlockRolePermissionsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ public function edit() {
'defaultPermissions' => $defaultPermissions,
'roles' => $roles,
'rolesRooms' => $rolesRooms,
'current' => $this->current,
);
$results = $this->camelizeKeyRecursive($results);
$this->set($results);
Expand Down
1 change: 0 additions & 1 deletion Controller/BlocksController.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ public function index() {

$results = array(
'bbses' => $bbses,
'current' => $this->current
);
$results = $this->camelizeKeyRecursive($results);
$this->set($results);
Expand Down

0 comments on commit 66a7c0d

Please sign in to comment.