From 0b07d7392c2e269bbc6944cd9ab72900126b9f7c Mon Sep 17 00:00:00 2001 From: Nathan Kinkade Date: Mon, 31 Dec 2012 15:27:39 +0000 Subject: Removed .php extension from URLs. --- view_meal.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'view_meal.php') diff --git a/view_meal.php b/view_meal.php index c5da293..028c01c 100644 --- a/view_meal.php +++ b/view_meal.php @@ -22,7 +22,7 @@ if ( isset($_POST['action']) && ($_POST['action'] == "viewMeal") ) { # meals was to simply stick an option in the "Favorites" menu in the # left sidebar, and that form directs the user here. if ( isset($_POST['meal']) && $_POST['meal'] == "viewAllMeals" ) { - header("Location: {$config->_rootUri}/list_meals.php"); + header("Location: {$config->_rootUri}/list_meals"); exit; } else { header("Location: {$config->_rootUri}/{$config->_thisScript}?meal={$_POST['meal']}&action=viewMeal"); @@ -84,7 +84,7 @@ if ( $_GET['meal'] == "0" ) { # only increment the counter if the previous page was food_search.php because # we don't want to increment the popularity while a user is just browsing around # in their own foods, but only if they got here from a search. -if ( strpos($config->_previousUri, "food_search.php") ) { +if ( strpos($config->_previousUri, "food_search") ) { incrementPopularityCounter($_GET['meal'], "userMeals"); } @@ -137,7 +137,7 @@ foreach ( $db->_rows as $row ) { foreach ( $currentMeal as $food ) { # add the description of this food to the array - $mealData['columnTitles'][] = "{$food['description']}"; + $mealData['columnTitles'][] = "{$food['description']}"; # do things a little different if the user is logged in if ( isLoggedIn() ) { -- cgit v1.2.3