details=$3 WHERE id=$4 AND group_id=$5", array($status, htmlspecialchars($summary), $details, $id, $group_id));
if (!$result || db_affected_rows($result) < 1) {
- $error_msg .= _('Error On Update:');
- $error_msg .= db_error();
+ $error_msg .= sprintf(_('Error On Update: %s'), db_error());
} else {
$feedback .= _('Newsbyte Updated.');
}
echo notepad_func();
echo '
- <p />
<form id="newsadminform" action="'.getStringFromServer('PHP_SELF').'" method="post">
<input type="hidden" name="group_id" value="'.db_result($result,0,'group_id').'" />
<input type="hidden" name="id" value="'.db_result($result,0,'id').'" />';
- $user =& user_get_object(db_result($result,0,'submitted_by'));
+ $user = user_get_object(db_result($result,0,'submitted_by'));
echo '
- <strong>'._('Submitted by').':</strong> '.$user->getRealName().'<br />
+ <strong>'._('Submitted by')._(':').'</strong> '.$user->getRealName().'<br />
<input type="hidden" name="approve" value="y" />
<input type="hidden" name="post_changes" value="y" />
<input type="radio" name="status" value="4" /> '._('Delete').'<br />
<strong>'._('Subject').'</strong><br />
- <input type="text" name="summary" value="'.db_result($result,0,'summary').'" size="60" maxlength="60" /><br />
+ <input type="text" name="summary" value="'.db_result($result,0,'summary').'" size="80" /><br />
<strong>'._('Details').'</strong>'.notepad_button('document.forms.newsadminform.details').'<br />';
$params = array () ;
echo $params['content'].'<br/>';
echo '<p>
- <strong>'.sprintf(_('If this item is on the %1$s home page and you edit it, it will be removed from the home page.'), forge_get_config ('forge_name')).'</strong></p>
+ <strong>'.sprintf(_('If this item is on the %s home page and you edit it, it will be removed from the home page.'), forge_get_config('forge_name')).'</strong></p>
<input type="submit" name="submit" value="'._('Submit').'" />
</form>';
$group = group_get_object($group_id);
if ($rows < 1) {
- echo '
- <p class="warning_msg">'._('No Queued Items Found').'</p>';
+ echo '<p class="information">'._('No Queued Items Found').'</p>';
} else {
echo '
<ul>';