{$title|default:"Home Page"}
+{$title|default:"no title"}
--------- templates/footer.tpl --------
@@ -175,8 +175,8 @@ You can pass as many variables as you want. The included file inherits all the
current template vars, plus any that are passed to it. The passed variables are
only available within the scope of the included file. Also notice the way the
$title variable is printed to the template. It uses a variable modifier called
-"default". Printing {$title|default:"Home Page"} means that if the value of
-$title is empty, the text "Home Page" will be printed instead of nothing.
+"default". Printing {$title|default:"no title"} means that if the value of
+$title is empty, the text "no title" will be printed instead of nothing.
IF/ELSEIF/ELSE
--------------
diff --git a/README b/README
index 1c5dff44..a32a27fa 100644
--- a/README
+++ b/README
@@ -51,8 +51,8 @@ DESCRIPTION:
REQUIREMENTS:
- Smarty requires PHP 4 or later. Smarty was developed and tested
- with 4.0.4pl1.
+ Smarty requires PHP 4.0.2 or later. Smarty was developed and tested
+ with 4.0.4pl1. See the BUGS section below.
INSTALLATION:
@@ -70,13 +70,13 @@ INSTALLATION:
BUGS:
- There are no known bugs with Smarty, although there are some
- bugs in PHP that cause problems with Smarty. preg_grep() previous
- to 4.0.4 has a bug which Smarty has a built-in workaround for.
- PHP 4.0.4 has a bug with user callbacks which would cause this
- syntax in Smarty to crash PHP: {$varname|@modname}
- Use PHP 4.0.4pl1 to fix this, or avoid using the "@" with
- modifiers.
+ There are no known bugs with Smarty, although there are some bugs in PHP
+ that cause problems with Smarty. preg_replace() had a parameter added in
+ 4.0.2 that is needed for Smarty. preg_grep() previous to 4.0.4 has a bug
+ which Smarty has a built-in workaround for. PHP 4.0.4 has a bug with user
+ callbacks which would cause this syntax in Smarty to crash PHP:
+ {$varname|@modname} Use PHP 4.0.4pl1 to fix this, or avoid using the "@"
+ with modifiers. To be absolutely safe, use 4.0.4pl or later with Smarty.
COPYRIGHT:
Copyright(c) 2000,2001 ispi. All rights reserved.
diff --git a/demo/index.php b/demo/index.php
index 79ceaf6f..b3ab3733 100644
--- a/demo/index.php
+++ b/demo/index.php
@@ -1,6 +1,6 @@
-require("./Smarty.class.php");
+require("Smarty.class.php");
$smarty = new Smarty;
diff --git a/doc.sgm b/doc.sgm
index 1afe5c1c..81107ded 100644
--- a/doc.sgm
+++ b/doc.sgm
@@ -142,7 +142,7 @@
Requirements
- Smarty requires PHP 4 or later. See the
+ Smarty requires PHP 4.0.2 or later. See the
BUGS section for caveats.
@@ -1753,13 +1753,14 @@ is the first week that has at least 4 days in the current year, and with Monday
BUGS
- There are no known bugs with Smarty, although there are some
- bugs in PHP that can cause problems with Smarty. preg_grep() previous
- to 4.0.4 has a bug which Smarty accomodates with a built-in workaround.
- PHP 4.0.4 has a bug with user callbacks which would cause this
- syntax in Smarty to crash PHP: {$varname|@modname}
- Use PHP 4.0.4pl1 to fix this, or avoid using the "@" with
- modifiers.
+ There are no known bugs with Smarty, although there are some bugs in PHP
+ that cause problems with Smarty. preg_replace() had a parameter added in
+ 4.0.2 that is needed for Smarty. preg_grep() previous to 4.0.4 has a bug
+ which Smarty has a built-in workaround for. PHP 4.0.4 has a bug with user
+ callbacks which would cause this syntax in Smarty to crash PHP:
+ {$varname|@modname} Use PHP 4.0.4pl1 to fix this, or avoid using the "@"
+ with modifiers. To be absolutely
+ safe, use 4.0.4pl or later with Smarty.
diff --git a/index.php b/index.php
index 79ceaf6f..b3ab3733 100644
--- a/index.php
+++ b/index.php
@@ -1,6 +1,6 @@
-require("./Smarty.class.php");
+require("Smarty.class.php");
$smarty = new Smarty;