Esempio n. 1
0
 static function update($newPages)
 {
     $pages = pages::get(true);
     pages::sanity_check($pages, $newPages);
     $pages = $pages['pages'];
     $navPages = pages::nav_pages($newPages);
     pages::update_pages($pages, $newPages, $navPages);
     pages::save_pages($newPages);
     pages::remove_deleted_pages($pages, $newPages);
     pages::sitemap($navPages);
     return array('status' => 0, 'pages' => pages::reduce_pages($newPages));
 }