|
From: Jon O. <jon...@us...> - 2008-02-27 21:33:49
|
Update of /cvsroot/mxbb/mx_simpledoc/simpledoc/modules In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv28373/modules Modified Files: simpledoc__node.php simpledoc_publish.php Log Message: Updated: Bugfix for releases New feature: Renaming folders and docs Index: simpledoc_publish.php =================================================================== RCS file: /cvsroot/mxbb/mx_simpledoc/simpledoc/modules/simpledoc_publish.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** simpledoc_publish.php 17 Jun 2006 20:50:47 -0000 1.2 --- simpledoc_publish.php 27 Feb 2008 21:33:41 -0000 1.3 *************** *** 61,64 **** --- 61,66 ---- $template->assign_vars( array( + 'PUBLISH_DIR_ERROR' => !$CONFIG['publish_dir'] || !$publish_dir_ok, + 'MX_ROOT_PATH' => $mx_root_path, 'MODULE_ROOT_PATH' => $module_root_path, Index: simpledoc__node.php =================================================================== RCS file: /cvsroot/mxbb/mx_simpledoc/simpledoc/modules/simpledoc__node.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** simpledoc__node.php 22 Jul 2007 21:08:59 -0000 1.6 --- simpledoc__node.php 27 Feb 2008 21:33:41 -0000 1.7 *************** *** 97,101 **** $id = $mx_simpledoc->unicode_urldecode($mx_simpledoc_functions->fix_charset(get('id'))); $name = $mx_simpledoc->unicode_urldecode($mx_simpledoc_functions->fix_charset(get('name'))); - $is_folder = get('is_folder'); --- 97,100 ---- *************** *** 111,114 **** --- 110,114 ---- case 'insertInsideAtStart': case 'insertInsideAtEnd': + case 'rename': case 'remove': $Node = new Node($id); *************** *** 154,157 **** --- 154,161 ---- break; + case 'rename': + $Node->rename($name, $is_folder); + break; + case 'remove': $Node->remove(); |