includes/pageprocess.php
changeset 472 bc4b58034f4d
parent 468 194a19711346
child 473 518bc2b214f1
equal deleted inserted replaced
471:7906fb190fc1 472:bc4b58034f4d
   367     }
   367     }
   368     return $this->fetch_text();
   368     return $this->fetch_text();
   369   }
   369   }
   370   
   370   
   371   /**
   371   /**
   372    * Updates the content of the page.
   372    * Updates (saves/changes/edits) the content of the page.
   373    * @param string The new text for the page
   373    * @param string The new text for the page
   374    * @param string A summary of edits made to the page.
   374    * @param string A summary of edits made to the page.
   375    * @param bool If true, the edit is marked as a minor revision
   375    * @param bool If true, the edit is marked as a minor revision
   376    * @return bool True on success, false on failure
   376    * @return bool True on success, false on failure. When returning false, it will push errors to the PageProcessor error stack; read with $page->pop_error()
   377    */
   377    */
   378   
   378   
   379   function update_page($text, $edit_summary = false, $minor_edit = false)
   379   function update_page($text, $edit_summary = false, $minor_edit = false)
   380   {
   380   {
   381     global $db, $session, $paths, $template, $plugins; // Common objects
   381     global $db, $session, $paths, $template, $plugins; // Common objects