* * @param string $string line of text * @param int $indent number of spaces indention * @deprecated 2023-08-31 use echo instead */ function ptln($string, $indent = 0) { DebugHelper::dbgDeprecatedFunction('echo'); echo str_repeat(' ', $indent) . "$string\n"; } /** * Adds/updates the search index for the given page * * Locking is handled internally. * * @param string $page name of the page to index * @param boolean $verbose print status messages * @param boolean $force force reindexing even when the index is up to date * @return string|boolean the function completed successfully * * @deprecated 2025-10-27 use Indexer class instead */ function idx_addPage($page, $verbose = false, $force = false) { DebugHelper::dbgDeprecatedFunction('dokuwiki\Search\Indexer::addPage()'); try { (new dokuwiki\Search\Indexer())->addPage($page, $force); return true; } catch (\dokuwiki\Search\Exception\SearchException $e) { return false; } }