diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2013-02-25 14:50:59 +0000 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2013-02-25 14:50:59 +0000 |
commit | 1fe0882c56ea31e738540e942b743966927415fd (patch) | |
tree | c3324566ada64f09775b35bc989592c7701c32d4 /inc/parserutils.php | |
parent | 177daee5492e8c3cdfdb950cdf61a6798f7a9586 (diff) | |
parent | 058fd09655df42c72f3c447e3b9561e4909e978d (diff) | |
download | rpg-1fe0882c56ea31e738540e942b743966927415fd.tar.gz rpg-1fe0882c56ea31e738540e942b743966927415fd.tar.bz2 |
Merge branch 'master' into FS#2415
Diffstat (limited to 'inc/parserutils.php')
-rw-r--r-- | inc/parserutils.php | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/inc/parserutils.php b/inc/parserutils.php index 1733fcf09..56161af44 100644 --- a/inc/parserutils.php +++ b/inc/parserutils.php @@ -86,67 +86,6 @@ function p_wiki_xhtml($id, $rev='', $excuse=true){ } /** - * Returns starting summary for a page (e.g. the first few - * paragraphs), marked up in XHTML. - * - * If $excuse is true an explanation is returned if the file - * wasn't found - * - * @param string $id wiki page id - * @param string $title populated with page title from heading or page id - * @param string $rev revision string - * @param bool $excuse if an excuse shall be renderer when no content is found - * @return string xhtml code - * @deprecated - * @author Harry Fuecks <hfuecks@gmail.com> - */ -function p_wiki_xhtml_summary($id, &$title, $rev='', $excuse=true){ - $file = wikiFN($id,$rev); - $ret = ''; - $ins = null; - - //ensure $id is in global $ID (needed for parsing) - global $ID; - $keep = $ID; - $ID = $id; - - if($rev){ - if(@file_exists($file)){ - //no caching on old revisions - $ins = p_get_instructions(io_readWikiPage($file,$id,$rev)); - }elseif($excuse){ - $ret = p_locale_xhtml('norev'); - //restore ID (just in case) - $ID = $keep; - return $ret; - } - - }else{ - - if(@file_exists($file)){ - // The XHTML for a summary is not cached so use the instruction cache - $ins = p_cached_instructions($file); - }elseif($excuse){ - $ret = p_locale_xhtml('newpage'); - //restore ID (just in case) - $ID = $keep; - return $ret; - } - } - - $ret = p_render('xhtmlsummary',$ins,$info); - - if ( $info['sum_pagetitle'] ) { - $title = $info['sum_pagetitle']; - } else { - $title = $id; - } - - $ID = $keep; - return $ret; -} - -/** * Returns the specified local text in parsed format * * @author Andreas Gohr <andi@splitbrain.org> @@ -158,23 +97,6 @@ function p_locale_xhtml($id){ } /** - * *** DEPRECATED *** - * - * use p_cached_output() - * - * Returns the given file parsed to XHTML - * - * Uses and creates a cachefile - * - * @deprecated - * @author Andreas Gohr <andi@splitbrain.org> - * @todo rewrite to use mode instead of hardcoded XHTML - */ -function p_cached_xhtml($file){ - return p_cached_output($file); -} - -/** * Returns the given file parsed into the requested output format * * @author Andreas Gohr <andi@splitbrain.org> |