/** * Verifies the title. Does the same processing as the general title verifier, * but also requires there be a title. * * @param string Title text * * @return bool Whether the title is valid */ function verify_title(&$title) { if (!parent::verify_title($title)) { return false; } if ($title == '') { $this->error('nosubject'); return false; } if ($this->condition and !$this->info['skip_moderator_log'] and $title != $this->existing['title']) { require_once DIR . '/includes/functions_log_error.php'; $logtype = fetch_modlogtypes('thread_title_x_changed'); $this->modlog[] = array('userid' => intval($this->registry->userinfo['userid']), 'type' => intval($logtype), 'action' => $this->existing['title']); } return true; }