Skip to content

Commit

Permalink
error in language choices fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
fivethreeo committed Dec 14, 2010
1 parent ae5a30c commit 0b1dee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmsplugin_pygments/models.py
Expand Up @@ -5,7 +5,7 @@

STYLE_CHOICES = map(lambda x: (x,x), get_all_styles())

LANGUAGE_CHOICES = map(lambda x: (x[0],x[1][0]), get_all_lexers())
LANGUAGE_CHOICES = map(lambda x: (x[1][0], x[0]), get_all_lexers())
LANGUAGE_CHOICES.sort(lambda x,y: cmp(x[0], y[0]))

class PygmentsPlugin(CMSPlugin):
Expand Down

0 comments on commit 0b1dee5

Please sign in to comment.