[opw-web] manage_programs: Change the program variable from p to prg
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [opw-web] manage_programs: Change the program variable from p to prg
- Date: Mon, 1 May 2017 03:10:38 +0000 (UTC)
commit d7dfe45c9e58741d5a79837497c4c3128f5babd1
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Sun Apr 30 22:55:49 2017 -0400
manage_programs: Change the program variable from p to prg
Using 'prg' for program as we do everywhere else means that the header
links work correctly and you can go from "Edit Program" immediately
to, say, viewing applications for that program.
modules/mod_manage_programs.php | 8 ++++----
.../html/tpl_manage_programs_item.html | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/modules/mod_manage_programs.php b/modules/mod_manage_programs.php
index 79db2c3..049bf7c 100644
--- a/modules/mod_manage_programs.php
+++ b/modules/mod_manage_programs.php
@@ -9,7 +9,7 @@ if (!defined('IN_PANDORA')) exit;
// Collect some data
$action = $core->variable('a', 'list');
-$id = $core->variable('p', 0);
+$id = $core->variable('prg', 0);
$title = $core->variable('title', '', false, true);
$description = $core->variable('description', '', false, true);
$application_prefill = $core->variable('application_prefill', '', false, true);
@@ -79,7 +79,7 @@ else if ($action == 'editor' && $reject_undecided)
"WHERE is_accepted = -1 " .
" AND program_id = :id";
$db->query($sql, array('id' => $id));
- $core->redirect("?q=manage_programs&a=editor&p={$id}");
+ $core->redirect("?q=manage_programs&a=editor&prg={$id}");
}
else if ($action == 'editor')
{
@@ -217,7 +217,7 @@ else if ($action == 'editor')
'error_message' => isset($error_message) ? $error_message : '',
'error_visibility' => $skin->visibility(isset($error_message)),
'delete_visibility' => $skin->visibility($id > 0),
- 'delete_url' => "?q=manage_programs&a=delete&p={$id}",
+ 'delete_url' => "?q=manage_programs&a=delete&prg={$id}",
));
// Output the module
@@ -264,7 +264,7 @@ else if ($action == 'delete')
$skin->assign(array(
'message_title' => $lang->get('confirm_deletion'),
'message_body' => $lang->get('confirm_program_del'),
- 'cancel_url' => "?q=manage_programs&a=editor&p={$id}",
+ 'cancel_url' => "?q=manage_programs&a=editor&prg={$id}",
));
// Output the module
diff --git a/skins/easterngreen/html/tpl_manage_programs_item.html
b/skins/easterngreen/html/tpl_manage_programs_item.html
index e9655ec..f3806f9 100644
--- a/skins/easterngreen/html/tpl_manage_programs_item.html
+++ b/skins/easterngreen/html/tpl_manage_programs_item.html
@@ -18,7 +18,7 @@
</td>
<td class="align-center">
- <a href="?q=manage_programs&a=editor&p=[[prog_id]]">
+ <a href="?q=manage_programs&a=editor&prg=[[prog_id]]">
<i class="icon-pencil"></i>
</a>
</td>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]