зеркало из https://github.com/mozilla/gecko-dev.git
labels can only go on blocks, not if statements, apparently. fixes bug 139646
This commit is contained in:
Родитель
685d9c3233
Коммит
25dfb6f913
|
@ -263,13 +263,15 @@ sub SetFactoid {
|
||||||
my($event, $replace, $subject, $database, $add, $object, $direct, $fromBot) = @_;
|
my($event, $replace, $subject, $database, $add, $object, $direct, $fromBot) = @_;
|
||||||
if ($direct or $self->allowed($event, 'Learn')) {
|
if ($direct or $self->allowed($event, 'Learn')) {
|
||||||
|
|
||||||
teacher: if (@{$self->{'teachers'}}) {
|
teacher: {
|
||||||
foreach my $user (@{$self->{'teachers'}}) {
|
if (@{$self->{'teachers'}}) {
|
||||||
if ($user eq $event->{'userName'}) {
|
foreach my $user (@{$self->{'teachers'}}) {
|
||||||
last teacher;
|
if ($user eq $event->{'userName'}) {
|
||||||
|
last teacher;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# update the database
|
# update the database
|
||||||
|
|
Загрузка…
Ссылка в новой задаче