$atfh = new ArtifactTypeFactoryHtml($group);
if (!$atfh || !is_object($atfh) || $atfh->isError()) {
- exit_error(_('Error')._(': ')._('could Not Get ArtifactTypeFactoryHtml'), 'tracker');
+ exit_error(_('Error')._(': ')._('Could Not Get ArtifactTypeFactoryHtml'), 'tracker');
}
$template = getIntFromRequest('template', 0);
if (!$dataArray || !is_array($dataArray)) {
if (!$this->fetchData($categoryId)) {
$this->setError(_('Invalid Trove Category'),
- _('That Trove category does not exist.').' '.db_error('SYS_DB_TROVE')
+ _('That Trove category does not exist').' '.db_error('SYS_DB_TROVE')
);
}
} else {
$this->dataArray =& $dataArray;
}
} else {
- $this->setError(_('ERROR'), _('That Trove category does not exist.'));
+ $this->setError(_('Error'), _('That Trove category does not exist'));
}
}
$fullName = trim($fullName);
$description = trim($description);
if(empty($shortName) || empty($fullName)) {
- $this->setError(_('ERROR'), _('Empty strings'));
+ $this->setError(_('Error'), _('Empty strings'));
return false;
} else {
db_begin();
WHERE trove_cat_id=$5",
array(htmlspecialchars($shortName), htmlspecialchars($fullName), htmlspecialchars($description), date('Ymd',time())."01", $this->categoryId));
if(!$result || db_affected_rows($result) != 1) {
- $this->setError(_('ERROR'), _('Cannot update'));
+ $this->setError(_('Error'), _('Cannot update'));
db_rollback();
return false;
} else {
* trove_getrootcat() - Get the root categegory
*
* @param int Trove category ID
+ * @return int
*/
function trove_getrootcat($trove_cat_id) {
$parent = 1;
* @param int The group ID
* @param bool Whether filters have already been applied
* @param bool Whether to print category links
+ * @return string
*/
function trove_getcatlisting($group_id,$a_filter,$a_cats) {
global $discrim_url;
$return = '';
if (db_numrows($res_trovecat) < 1) {
- $return .= sprintf (_('This project has not yet categorized itself in the <a href="%s">Trove Software Map</a>.'), util_make_url ('/softwaremap/trove_list.php'))
- .'<p />';
+ $return .= '<p>' . sprintf (_('This project has not yet categorized itself in the <a href="%s">Trove Software Map</a>.'), util_make_url ('/softwaremap/trove_list.php'))
+ .'</p>';
} else {
$return .= '<ul>';
$need_close_ul_tag = 1;