<?php
/**
 * Print Wikka patch level. 
 *
 * By default this only displays for Wikka admins. This option can be
 * changed by setting 'public_sysinfo' to '1' in the Wikka
 * configuration file.
 *
 * Syntax: {{wikkapatchlevel}}
 *
 * @package		Actions
 * @name		Wikka Patch Level 
 *
 * @author		{@link http://wikkawiki.org/BrianKoontz Brian Koontz}
 *
 * Also see author list for {{wikkaversion}}
 */

// defaults
$out = '<abbr title="'.WIKKA_ADMIN_ONLY_TITLE.'">'.WIKKA_NOT_AVAILABLE.'</abbr>';

//check privs
if ($this->GetConfigValue('public_sysinfo') == '1' || $this->IsAdmin())
{
	$out = $this->PATCH_LEVEL;
}
echo $out;
?>
