function checkPage($page)
 {
     global $feedback;
     /**
      * Check if the given page name is not empty
      */
     if (empty($page)) {
         $feedback = $GLOBALS['Language']->getText('wiki_actions_wikiserviceadmin', 'page_name_empty_err');
         return false;
     }
     /**
      * Check if the page is a valid page.
      */
     $wp = new WikiPage($this->gid, $page);
     if (!$wp->exist()) {
         $wpw = new WikiPageWrapper($this->gid);
         $wpw->addNewProjectPage($page);
     }
     return true;
 }
Esempio n. 2
0
 function add_temp_page()
 {
     /* ADD TEST TO NOT ADD A ALREADY existing PAge */
     $wpw = new WikiPageWrapper($this->gid);
     $wpw->addNewProjectPage($_POST['name']);
 }