cakephp2-php8/lib/Cake/Controller
Mark Story mark@mark-story.com bb3a1d546b Fixing RequesHandler::prefers(). It was previously entirely wrong.
It took the ordered list of accept types, and blindly assumed
the first in the list was the most preferred.  This is an incorrect
assumption to make, as all types with the same q value are equal.

- Using CakeRequest::parseAccept() to access only the most preferred
content types.
- Using in_array() to check for the desired type.
- Updating tests for RequestHandler.
2011-09-01 00:20:54 +01:00
..
Component Fixing RequesHandler::prefers(). It was previously entirely wrong. 2011-09-01 00:20:54 +01:00
AppController.php Updating all @package annotations in doc blocks 2011-07-26 01:46:14 -04:30
CakeErrorController.php Adjusted some types in @param, @return and @var. 2011-07-31 22:57:17 -04:00
Component.php Adjusted some types in @param, @return and @var. 2011-07-31 22:57:17 -04:00
ComponentCollection.php Removing trailing spaces. 2011-08-15 23:55:08 -04:00
Controller.php Changed protected callbacks of scaffold to public in Controller. 2011-08-21 23:18:55 -04:00
PagesController.php Removed the @access and @static. 2011-07-30 20:56:48 -04:00
Scaffold.php Fixed tests affected by the visibility changes. 2011-08-24 23:10:51 -04:00