Error [500]

Class "JRequest" not found
.../templates/shaper_travelia/html/layouts/joomla/content/rating.php:15
10 defined('JPATH_BASE') or die;
11 
12 if($displayData['params']->get('show_vote')) {
13 
14 $rating = (int) $displayData['item']->rating;
15 $layout = JRequest::getCmd('view', 'article');
16 
17 $rating_count = $displayData['item']->rating_count;
18 if($rating_count == '') {
19 	$rating_count = 0;
20 }