This resolves bug report 1959.pull/2/head
parent
9b4fe762e8
commit
44b8d19c83
@ -1,37 +0,0 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
$detailed = 1;
|
||||
$namesfirst = 1;
|
||||
|
||||
while (<>)
|
||||
{
|
||||
($key, $value) = ($_ =~ /([^=]+)=[ \t]*([^\n]+)/);
|
||||
if ($key eq "DetailedMenuEntries")
|
||||
{
|
||||
if ($value eq "false")
|
||||
{
|
||||
$detailed = 0;
|
||||
}
|
||||
}
|
||||
elsif ($key eq "DetailedEntriesNamesFirst")
|
||||
{
|
||||
if ($value eq "false")
|
||||
{
|
||||
$namesfirst = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (not $detailed)
|
||||
{
|
||||
print "MenuEntryFormat=NameOnly\n";
|
||||
}
|
||||
elsif ($namesfirst)
|
||||
{
|
||||
print "MenuEntryFormat=NameAndDescription\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
print "MenuEntryFormat=DescriptionAndName\n";
|
||||
}
|
||||
|
Loading…
Reference in new issue