/** * Attempts to figure out which liveblog the user wants to use - either the one sent in the last save, or * one of the ones associated with this page (there should only be 1) * * @return int */ private function guess_default_liveblog_id() { if (isset($_GET['live_blogging_entry_post'])) { return $_GET['live_blogging_entry_post']; } else { $associated_liveblogs = LiveBlogging_LiveBlogPost::get_liveblogs_for_current_post(); if (!empty($associated_liveblogs)) { return $associated_liveblogs[0]; } else { return 0; } } }