Skip to content

Commit

Permalink
add modified and modified_by to section arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
oyejorge committed May 22, 2013
1 parent 73ba9e8 commit ffebcbc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/tool/editing.php
Expand Up @@ -804,7 +804,7 @@ function IncludeDialog( $section ){
*
*/
static function SectionFromPost( &$existing_section, $section_num, $title, $file_stats ){
global $page;
global $page, $gpAdmin;

$section_before = $existing_section;
$type = $existing_section['type'];
Expand Down Expand Up @@ -833,6 +833,9 @@ static function SectionFromPost( &$existing_section, $section_num, $title, $file
$page->file_sections[$section_num] = $existing_section = $section_before;
}

$page->file_sections[$section_num]['modified'] = time();
$page->file_sections[$section_num]['modified_by'] = $gpAdmin['username'];

return $save_this;
}

Expand Down

0 comments on commit ffebcbc

Please sign in to comment.