ordered alias list
git-svn-id: file:///home/shish/svn/shimmie2/trunk@737 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
986e8228bb
commit
abc2fe278a
@ -40,7 +40,9 @@ class AliasEditor extends Extension {
|
|||||||
}
|
}
|
||||||
else if($event->get_arg(0) == "list") {
|
else if($event->get_arg(0) == "list") {
|
||||||
global $database;
|
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") {
|
else if($event->get_arg(0) == "export") {
|
||||||
global $database;
|
global $database;
|
||||||
@ -71,7 +73,8 @@ class AliasEditor extends Extension {
|
|||||||
|
|
||||||
if(is_a($event, 'AddAliasEvent')) {
|
if(is_a($event, 'AddAliasEvent')) {
|
||||||
global $database;
|
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')) {
|
if(is_a($event, 'UserBlockBuildingEvent')) {
|
||||||
|
@ -45,6 +45,7 @@ class AliasEditorTheme extends Themelet {
|
|||||||
$html = "
|
$html = "
|
||||||
<table border='1'>
|
<table border='1'>
|
||||||
<thead><td>From</td><td>To</td>$action</thead>
|
<thead><td>From</td><td>To</td>$action</thead>
|
||||||
|
$add
|
||||||
$h_aliases
|
$h_aliases
|
||||||
$add
|
$add
|
||||||
</table>
|
</table>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user