|
From: Jon O. <jon...@us...> - 2006-06-30 11:17:28
|
Update of /cvsroot/mxbb/mx_simpledoc/simpledoc/modules In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv26055/modules/mx_simpledoc/simpledoc/modules Modified Files: simpledoc_index.php simpledoc_view.php Log Message: Adding Edit Lock and fixing some bugs Index: simpledoc_index.php =================================================================== RCS file: /cvsroot/mxbb/mx_simpledoc/simpledoc/modules/simpledoc_index.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** simpledoc_index.php 17 Jun 2006 20:50:47 -0000 1.2 --- simpledoc_index.php 30 Jun 2006 11:17:24 -0000 1.3 *************** *** 21,24 **** --- 21,29 ---- global $mx_page, $mx_block, $simpledoc_projectName; + // + // Edit lock + // + $this->edit_lock(); + $template->set_filenames( array( 'body' => 'simpledoc_index.tpl' )); Index: simpledoc_view.php =================================================================== RCS file: /cvsroot/mxbb/mx_simpledoc/simpledoc/modules/simpledoc_view.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** simpledoc_view.php 17 Jun 2006 20:50:47 -0000 1.2 --- simpledoc_view.php 30 Jun 2006 11:17:24 -0000 1.3 *************** *** 27,36 **** $published_folder = $PUBLISH . '/html'; ! // ! // Build the $tree and html ! // ! $tree = array(); ! $this->build_tree($tree, $published_folder); ! $tree_html = $this->build_tree_html($tree); $template->assign_vars( array( --- 27,39 ---- $published_folder = $PUBLISH . '/html'; ! if (file_exists($published_folder)) ! { ! // ! // Build the $tree and html ! // ! $tree = array(); ! $this->build_tree($tree, $published_folder); ! $tree_html = $this->build_tree_html($tree); ! } $template->assign_vars( array( |