Updated files for first Beta release

Fixed a few small bugs
This commit is contained in:
Marc Alexander
2011-05-13 00:01:23 +02:00
parent f6db836926
commit e52d009593
11 changed files with 59 additions and 38 deletions

View File

@@ -353,6 +353,7 @@ $versions = array(
array(PORTAL_MODULES_TABLE, 'module_status', array('TINT:1', 1)),
),
),
'2.0.0b1' => array(),
);
// Include the UMIL Auto file, it handles the rest

View File

@@ -581,8 +581,6 @@ function get_portal_tracking_info($fetch_news)
{
global $config, $user;
$time1 = microtime();
$last_read = $topic_ids = $forum_ids = $tracking_info = array();
/**

View File

@@ -104,7 +104,7 @@ class portal_upload
// Now we need to get the files inside the folders
//$folder_contents = $this->cut_folder(scandir($mod_dir));
$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($mod_dir)); // requires PHP >= 5.1.0
$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($mod_dir)); // requires PHP 5
foreach($iterator as $cur_file)
{
@@ -114,7 +114,7 @@ class portal_upload
$cut_pos = strpos($cur_path, '/');
// Only allow files in adm, language, portal and styles folder
if(!in_array(substr($cur_path, 0, $cut_pos), array('adm', 'language', 'portal', 'styles')))
if(!in_array(substr($cur_path, 0, $cut_pos), array('adm', 'language', 'portal', 'styles')) && $cur_file->getFilename() != 'license.txt')
{
$file->remove();
$this->directory_delete($mod_dir);