Skip to content

Commit

Permalink
fix line limit over
Browse files Browse the repository at this point in the history
  • Loading branch information
RyujiAMANO committed Apr 25, 2016
1 parent fc9d627 commit 110fb00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Controller/TagsAppController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ class TagsAppController extends AppController {
* @return int|string
*/
protected function _getNamed($name, $default = null) {
$value = isset($this->request->params['named'][$name]) ? $this->request->params['named'][$name] : $default;
//$value = isset($this->request->params['named'][$name]) ? $this->request->params['named'][$name] : $default;
$value = Hash::get($this->request->params, 'named.' . $name, $default);
return $value;
}

Expand Down
3 changes: 2 additions & 1 deletion Model/Behavior/TagBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ public function beforeFind(Model $Model, $query) {
'table' => $TagsContent->tablePrefix . 'tags_contents',
'alias' => 'TagsContent',
'conditions' =>
'`' . $Model->alias . '`.`id`=`TagsContent`.`content_id` AND model = \'' . $Model->alias . '\'',
'`' . $Model->alias . '`.`id`=`TagsContent`.`content_id`' .
' AND model = \'' . $Model->alias . '\'',
);
}

Expand Down

0 comments on commit 110fb00

Please sign in to comment.