summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Kinkade <nath@nkinka.de>2008-02-17 00:43:22 +0000
committerNathan Kinkade <nath@nkinka.de>2008-02-17 00:43:22 +0000
commit8c0e39d2080d6322869508aaefc18eba67715971 (patch)
treed6f7813307d39081113164a79e867e11f30059ac
parent43d4128df3e5607e6f0a35397e42b079a51361ac (diff)
Fix small typo causing meal viewing to fail. svn:ignore smarty templates cache.
-rw-r--r--config.php6
-rw-r--r--view_meal.php2
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 {