Skip to content

Commit

Permalink
Moved validate feed from table to add and edit form only.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhawes committed Jan 24, 2005
1 parent 23e00b4 commit 7c560a6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rss/rsslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -465,12 +465,11 @@ function rss_get_form($act, $url, $rssid, $rsstype, $printnow=true) {
$returnstring .= '<input type="hidden" name="blogid" value="'. $blogid .'" />'."\n";
$returnstring .= '<input type="hidden" name="user" value="'. $USER->id .'" />'."\n";
$returnstring .= '<br /><input type="submit" value="';
$validatestring = "<a href=\"#\" onClick=\"window.open('http://feedvalidator.org/check.cgi?url='+document.block_rss.elements['url'].value,'validate','width=640,height=480,scrollbars=yes,status=yes,resizable=yes');return true;\">Validate</a>";
if ($act == 'rss_edit') {
$returnstring .= $stredit;
$validatestring = '<a href="http://feeds.archive.org/validator/check?url='. $res->fields['url'] .'">(Validate)</a>';
$returnstring .= $stredit;
} else {
$returnstring .= $stradd;
$validatestring = '';
}
$returnstring .= '" />&nbsp;'. $validatestring .'</form>'."\n";
$returnstring .= '</td></tr></tbody></table>'."\n";
Expand Down

0 comments on commit 7c560a6

Please sign in to comment.