mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 03:44:26 +02:00
fix php bug #34520: broken example display (de only)
This commit is contained in:
@@ -256,6 +256,7 @@ $smarty = new Smarty;
|
|||||||
define('SMARTY_DIR','/usr/local/lib/php/Smarty/');
|
define('SMARTY_DIR','/usr/local/lib/php/Smarty/');
|
||||||
require(SMARTY_DIR.'Smarty.class.php');
|
require(SMARTY_DIR.'Smarty.class.php');
|
||||||
$smarty = new Smarty;
|
$smarty = new Smarty;
|
||||||
|
?>
|
||||||
]]>
|
]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
@@ -377,7 +378,7 @@ chmod 770 /web/www.example.com/smarty/guestbook/templates_c/
|
|||||||
|
|
||||||
chown nobody:nobody /web/www.example.com/smarty/guestbook/cache/
|
chown nobody:nobody /web/www.example.com/smarty/guestbook/cache/
|
||||||
chmod 770 /web/www.example.com/smarty/guestbook/cache/</screen>
|
chmod 770 /web/www.example.com/smarty/guestbook/cache/</screen>
|
||||||
]]>
|
]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
|
|
||||||
@@ -450,7 +451,7 @@ $smarty->cache_dir = '/web/www.example.com/smarty/guestbook/cache/';
|
|||||||
|
|
||||||
$smarty->assign('name','Ned');
|
$smarty->assign('name','Ned');
|
||||||
|
|
||||||
$smarty->display('index.tpl');</screen>
|
$smarty->display('index.tpl');
|
||||||
?>
|
?>
|
||||||
]]>
|
]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
@@ -527,6 +528,8 @@ class Smarty_GuestBook extends Smarty {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
|
]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
|
|
||||||
@@ -556,10 +559,10 @@ class Smarty_GuestBook extends Smarty {
|
|||||||
require('guestbook/setup.php');
|
require('guestbook/setup.php');
|
||||||
|
|
||||||
$smarty = new Smarty_GuestBook;
|
$smarty = new Smarty_GuestBook;
|
||||||
|
|
||||||
$smarty->assign('name','Ned');
|
$smarty->assign('name','Ned');
|
||||||
|
|
||||||
$smarty->display('index.tpl');
|
$smarty->display('index.tpl');
|
||||||
|
|
||||||
|
?>
|
||||||
]]>
|
]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
|
Reference in New Issue
Block a user