From 8c0e39d2080d6322869508aaefc18eba67715971 Mon Sep 17 00:00:00 2001 From: Nathan Kinkade Date: Sun, 17 Feb 2008 00:43:22 +0000 Subject: Fix small typo causing meal viewing to fail. svn:ignore smarty templates cache. --- config.php | 6 +++--- view_meal.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config.php b/config.php index 7513385..0a1a2d6 100644 --- a/config.php +++ b/config.php @@ -15,7 +15,7 @@ define("DBUSER", "nutridb"); # database user define("DBPASS", "Nutr1dbAdm1n"); # database password define("ADODBDIR", "/usr/share/php/adodb"); # adodb db abastractions libs - adodb.sourceforge.net -define("SMARTYDIR", "/usr/share/php/smarty/libs"); # Smarty templates dir - smarty.php.net +define("SMARTYDIR", "/usr/share/php/smarty"); # Smarty templates dir - smarty.php.net # if true then any db error will cause the error to be printed # and the script will be halted. this should probably only be @@ -28,8 +28,8 @@ $config = new siteConfig; # variables that need to be interpolated inside strings and HEREDOCs # will go in the siteConfig object -$config->_rootDir = "/var/www/nutridb/trunk"; # root directory -$config->_rootUri = "http://localhost/nutridb/trunk"; # root uri +$config->_rootDir = "/var/www/nutridb.org/trunk"; # root directory +$config->_rootUri = "http://localhost/nutridb.org/trunk"; # root uri $config->_imgUri = "{$config->_rootUri}/images"; # where images live $config->_cssUri = "{$config->_rootUri}/css"; # where css files live $config->_jsUri = "{$config->_rootUri}/js"; # where javascript files live diff --git a/view_meal.php b/view_meal.php index 6dfda0f..bec1625 100644 --- a/view_meal.php +++ b/view_meal.php @@ -34,7 +34,7 @@ if ( $_GET['meal'] == "0" ) { # the current meal is located in the session. put it into a local variable # but only if it actually contains at least one item, otherwise send the user # back to wherever they were before - if ( isset($_SESSION['currentMeal']) && count($_SESSIOn['currentMeal'])) { + if ( isset($_SESSION['currentMeal']) && count($_SESSION['currentMeal'])) { $currentMeal = $_SESSION['currentMeal']; $smarty->assign("mealDesc", "(Current meal)"); } else { -- cgit v1.2.3