hotfix format saving
parent
0ccef4136d
commit
c0286d45e9
|
@ -30,6 +30,11 @@ sub fill_content {
|
|||
return 1;
|
||||
}
|
||||
|
||||
if ($main::FORM{action} and "x".$main::FORM{action} eq "xsaveformat"){
|
||||
$feed->{data}->{format} = $main::FORM{format};
|
||||
$feed->save();
|
||||
}
|
||||
|
||||
if ($main::FORM{action} and "x".$main::FORM{action} eq "xsave"){
|
||||
my @filters = $feed->filters();
|
||||
FILTER: foreach my $filter (@filters){
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
<h3>Format</h3>
|
||||
<div id="format">
|
||||
Enter the format for the toot. You can use the placeholders <code>{ID}</code>, <code>{Title}</code>, <code>{Link}</code>, <code>{Content}</code>, <code>{Author}</code>, <code>{Issued}</code>, <code>{Modified}</code> and <code>{Tags}</code> to substitute the respective values. <br />
|
||||
<input type="text" placeholder="{Title} - {Link} by {Author} -- posted at {Issued} with #RSSTootalizer" maxlength=500 value="<TMPL_VAR NAME="format">" class="btn-block"><br />
|
||||
<input type="text" placeholder="{Title} - {Link} by {Author} -- posted at {Issued} with #RSSTootalizer" maxlength=500 value="<TMPL_VAR NAME="format">" name="format" class="btn-block"><br />
|
||||
<input type="Submit" value="Save format" class="btn btn-primary btn-block">
|
||||
</div>
|
||||
</form>
|
||||
|
|
Loading…
Reference in New Issue