aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-07-16 20:39:05 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-07-16 20:39:05 +0000
commit3e931c9696efd2a11d56fd1b436b8dbc9d33f5d8 (patch)
tree2ba94bf9489ae0a67375de5fea492089c9c9bf6c
parent72a5470ff663b41486e85adad519fe798fe8f923 (diff)
downloadforums-3e931c9696efd2a11d56fd1b436b8dbc9d33f5d8.tar
forums-3e931c9696efd2a11d56fd1b436b8dbc9d33f5d8.tar.gz
forums-3e931c9696efd2a11d56fd1b436b8dbc9d33f5d8.tar.bz2
forums-3e931c9696efd2a11d56fd1b436b8dbc9d33f5d8.tar.xz
forums-3e931c9696efd2a11d56fd1b436b8dbc9d33f5d8.zip
Minor changes
git-svn-id: file:///svn/phpbb/trunk@2704 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/includes/template.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/phpBB/includes/template.php b/phpBB/includes/template.php
index 2b8b800b9f..b2cbfada87 100644
--- a/phpBB/includes/template.php
+++ b/phpBB/includes/template.php
@@ -75,7 +75,8 @@ class Template {
if ( !file_exists($this->cachedir) )
{
- mkdir($this->cachedir, 0644);
+ @umask(0);
+ mkdir($this->cachedir, 0777);
}
return true;
@@ -93,8 +94,7 @@ class Template {
}
$template_names = '';
- @reset($filename_array);
- while ( list($handle, $filename) = @each($filename_array) )
+ foreach ( $filename_array as $handle => $filename )
{
if ( empty($filename) )
{
@@ -257,8 +257,7 @@ class Template {
*/
function assign_vars($vararray)
{
- reset($vararray);
- while ( list($key, $val) = each($vararray) )
+ foreach ( $vararray as $key => $val )
{
$this->_tpldata['.'][0][$key] = $val;
}