From abc2fe278aff817146ffa0c34bced706895009d8 Mon Sep 17 00:00:00 2001 From: shish Date: Mon, 31 Mar 2008 02:39:08 +0000 Subject: [PATCH] ordered alias list git-svn-id: file:///home/shish/svn/shimmie2/trunk@737 7f39781d-f577-437e-ae19-be835c7a54ca --- ext/alias_editor/main.php | 7 +++++-- ext/alias_editor/theme.php | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ext/alias_editor/main.php b/ext/alias_editor/main.php index 7e4c1138..4bdbbc70 100644 --- a/ext/alias_editor/main.php +++ b/ext/alias_editor/main.php @@ -40,7 +40,9 @@ class AliasEditor extends Extension { } else if($event->get_arg(0) == "list") { global $database; - $this->theme->display_aliases($event->page, $database->db->GetAssoc("SELECT oldtag, newtag FROM aliases"), $event->user->is_admin()); + $this->theme->display_aliases($event->page, + $database->db->GetAssoc("SELECT oldtag, newtag FROM aliases ORDER BY newtag"), + $event->user->is_admin()); } else if($event->get_arg(0) == "export") { global $database; @@ -71,7 +73,8 @@ class AliasEditor extends Extension { if(is_a($event, 'AddAliasEvent')) { global $database; - $database->Execute("INSERT INTO aliases(oldtag, newtag) VALUES(?, ?)", array($event->oldtag, $event->newtag)); + $database->Execute("INSERT INTO aliases(oldtag, newtag) VALUES(?, ?)", + array($event->oldtag, $event->newtag)); } if(is_a($event, 'UserBlockBuildingEvent')) { diff --git a/ext/alias_editor/theme.php b/ext/alias_editor/theme.php index cfe24c0a..82d6513e 100644 --- a/ext/alias_editor/theme.php +++ b/ext/alias_editor/theme.php @@ -45,6 +45,7 @@ class AliasEditorTheme extends Themelet { $html = " $action + $add $h_aliases $add
FromTo