Verified Commit 0ef56e42 authored by kiavash's avatar kiavash

remove internal image parser

parent c2ee21fc
......@@ -57,11 +57,6 @@ sub preparator {
{
Mira::Control::Content::Date->date($values, $config->{$floor}->{timezone});
# $values->{body} = Mira::Control::Parser::img->replace(
# $values->{body},
# _img_url($floor, $config),
# $config,
# );
$values->{body} = Mira::Control::Parser::Markup->markup(
$values->{body},
_markup_lang($values, $config),
......@@ -122,28 +117,6 @@ sub _markup_lang {
}
sub _img_url {
my $floor = shift;
my $config = shift;
my $imgurl;
if ($config->{$floor} and $config->{$floor}->{imageurl})
{
$imgurl = $config->{$floor}->{imageurl};
} elsif ($config->{_default}->{imageurl})
{
$imgurl = $config->{_default}->{imageurl};
} elsif ($config->{$floor} and $config->{$floor}->{root})
{
$imgurl = "/$config->{$floor}->{root}/static/img/";
} else
{
$imgurl = "/$floor/static/img/";
}
$imgurl =~ s:/+:/:g;
return $imgurl;
}
1;
__END__
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment