diff options
| author | Nathan Kinkade <nath@nkinka.de> | 2008-02-17 00:43:22 +0000 |
|---|---|---|
| committer | Nathan Kinkade <nath@nkinka.de> | 2008-02-17 00:43:22 +0000 |
| commit | 8c0e39d2080d6322869508aaefc18eba67715971 (patch) | |
| tree | d6f7813307d39081113164a79e867e11f30059ac | |
| parent | 43d4128df3e5607e6f0a35397e42b079a51361ac (diff) | |
Fix small typo causing meal viewing to fail. svn:ignore smarty templates cache.
| -rw-r--r-- | config.php | 6 | ||||
| -rw-r--r-- | view_meal.php | 2 |
2 files changed, 4 insertions, 4 deletions
@@ -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 { |
