#15 when temporary document update, regdate setting now

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8416 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-06-01 07:03:45 +00:00
parent 0678de9512
commit 3b60124a7d
2 changed files with 4 additions and 0 deletions

View file

@ -342,6 +342,9 @@ class documentController extends document {
}
// Remove iframe and script if not a top adminisrator in the session.
if($logged_info->is_admin != 'Y') $obj->content = removeHackTag($obj->content);
// if temporary document, regdate is now setting
if($source_obj->get('status') == 'TEMP') $obj->regdate = date('YmdHis');
// Insert data into the DB
$output = executeQuery('document.updateDocument', $obj);
if(!$output->toBool()) {

View file

@ -21,6 +21,7 @@
<column name="homepage" var="homepage" filter="homepage" maxlength="250" />
<column name="tags" var="tags" default="" />
<column name="extra_vars" var="extra_vars" />
<column name="regdate" var="regdate" />
<column name="last_update" var="last_update" default="curdate()" />
<column name="ipaddress" var="ipaddress" default="ipaddress()" />
<column name="list_order" var="list_order" />