From: <te...@us...> - 2004-08-12 22:32:54
|
Update of /cvsroot/tikiwiki/tiki/lib/structures In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20348/lib/structures Modified Files: structlib.php Log Message: teedogs first Instant-Auto-Merge from BRANCH-1-9 to HEAD: please dont break Index: structlib.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/lib/structures/structlib.php,v retrieving revision 1.54 retrieving revision 1.55 diff -u -d -r1.54 -r1.55 --- structlib.php 29 Jul 2004 17:38:14 -0000 1.54 +++ structlib.php 12 Aug 2004 22:31:44 -0000 1.55 @@ -160,21 +160,20 @@ - /** \brief Create a structure entry with the given name - - \param parent_id The parent entry to add this to. - If NULL, create new structure. - \param after_ref_id The entry to add this one after. - If NULL, put it in position 0. - \param name The wiki page to reference - \param alias An alias for the wiki page name. - \return the new entries page_ref_id or null if not created. - */ - function s_create_page($parent_id, $after_ref_id, $name, $alias='') { - $ret = null; - // If the page doesn't exist then create a new wiki page! - $now = date("U"); - $created = $this->create_page($name, 0, '', $now, tra('created from structure'), 'system', '0.0.0.0', ''); + /** \brief Create a structure entry with the given name + \param parent_id The parent entry to add this to. + If NULL, create new structure. + \param after_ref_id The entry to add this one after. + If NULL, put it in position 0. + \param name The wiki page to reference + \param alias An alias for the wiki page name. + \return the new entries page_ref_id or null if not created. + */ + function s_create_page($parent_id, $after_ref_id, $name, $alias='') { + $ret = null; + // If the page doesn't exist then create a new wiki page! + $now = date("U"); + $created = $this->create_page($name, 0, '', $now, tra('created from structure'), 'system', '0.0.0.0', ''); // if were not trying to add a duplicate structure head if ($created or isset($parent_id)) { //Get the page Id |