mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Minor changes
git-svn-id: file:///svn/phpbb/trunk@2704 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
72a5470ff6
commit
3e931c9696
1 changed files with 4 additions and 5 deletions
|
@ -75,7 +75,8 @@ class Template {
|
||||||
|
|
||||||
if ( !file_exists($this->cachedir) )
|
if ( !file_exists($this->cachedir) )
|
||||||
{
|
{
|
||||||
mkdir($this->cachedir, 0644);
|
@umask(0);
|
||||||
|
mkdir($this->cachedir, 0777);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -93,8 +94,7 @@ class Template {
|
||||||
}
|
}
|
||||||
|
|
||||||
$template_names = '';
|
$template_names = '';
|
||||||
@reset($filename_array);
|
foreach ( $filename_array as $handle => $filename )
|
||||||
while ( list($handle, $filename) = @each($filename_array) )
|
|
||||||
{
|
{
|
||||||
if ( empty($filename) )
|
if ( empty($filename) )
|
||||||
{
|
{
|
||||||
|
@ -257,8 +257,7 @@ class Template {
|
||||||
*/
|
*/
|
||||||
function assign_vars($vararray)
|
function assign_vars($vararray)
|
||||||
{
|
{
|
||||||
reset($vararray);
|
foreach ( $vararray as $key => $val )
|
||||||
while ( list($key, $val) = each($vararray) )
|
|
||||||
{
|
{
|
||||||
$this->_tpldata['.'][0][$key] = $val;
|
$this->_tpldata['.'][0][$key] = $val;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue