ErrorException [ Deprecated ]: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

MODPATH\template\classes\Kohana\Img.php [ 26 ]

21             $image->resize($params['w'], $params['h'], Image::NONE);
22         }else{
23             $isize = getimagesize($storage.$src);
24             if($isize[0] > $params['w'] || $isize[1] > $params['h']){
25                 if($params['resize'] == 'true' and $params['crop'] == 'true'){
26                     $image->resize($params['w'], $params['h'], $keep ? $keep : $image->width / $params['w'] > $image->height / $params['h'] ? Image::HEIGHT : Image::WIDTH );
27                 }else if($params['resize'] == 'true'){
28                     $image->resize($params['w'], $params['h'], Image::AUTO);
29                 }
30 
31                 if($params['crop'] == 'true')
  1. SYSPATH\classes\Kohana\Core.php [ 511 ] » Kohana_Core::error_handler()

  2. SYSPATH\classes\Kohana\Core.php [ 511 ] » require()

  3. {PHP internal call} » Kohana_Core::auto_load()

  4. MODPATH\template\classes\Img.php [ 3 ] » spl_autoload_call()

  5. SYSPATH\classes\Kohana\Core.php [ 511 ] » require(arguments)

  6. {PHP internal call} » Kohana_Core::auto_load()

  7. APPPATH\classes\Controller\Noticias.php [ 53 ] » spl_autoload_call()

  8. SYSPATH\classes\Kohana\Controller.php [ 84 ] » Controller_Noticias->action_index()

  9. {PHP internal call} » Kohana_Controller->execute()

  10. SYSPATH\classes\Kohana\Request\Client\Internal.php [ 97 ] » ReflectionMethod->invoke()

  11. SYSPATH\classes\Kohana\Request\Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request()

  12. SYSPATH\classes\Kohana\Request.php [ 986 ] » Kohana_Request_Client->execute()

  13. DOCROOT\index.php [ 118 ] » Kohana_Request->execute()

Environment