When creating a work (folder) active = 1

skala
Julio Montoya 14 years ago
parent 36417db478
commit 6c1341b4ae
  1. 7
      main/work/work.php

@ -785,13 +785,8 @@ switch ($action) {
$form->addElement('html', '</div>');
$form->addElement('style_submit_button', 'submit', get_lang('CreateDirectory'));
if ($form->validate()) {
/*
$fexpire = get_date_from_select('expires');
$fend = get_date_from_select('ends');*/
$directory = Security::remove_XSS($_POST['new_dir']);
$directory = replace_dangerous_char($directory);
$directory = disable_dangerous_file($directory);
@ -816,7 +811,7 @@ switch ($action) {
title = '".Database::escape_string($_POST['new_dir'])."',
description = '".Database::escape_string($_POST['description'])."',
author = '',
active = '0',
active = '1',
accepted = '1',
filetype = 'folder',
post_group_id = '".$group_id."',

Loading…
Cancel
Save