Commit 6087232e authored by Clare Lenihan's avatar Clare Lenihan Committed by Clare Lenihan
Browse files

fixing redirects + minor display stuff

parent cd0d9e2a
......@@ -74,7 +74,7 @@
<div class="center">{$pagination}</div>
{else}
{str tag="noviews" section="views"}
<div class="message">{str tag="noviews" section="views"}</div>
{/if}
{include file="columnleftend.tpl"}
......
......@@ -48,7 +48,7 @@ $form = pieform(array(
'type' => 'submitcancel',
'title' => get_string('deleteviewconfirm', 'view'),
'value' => array(get_string('yes'), get_string('no')),
'goto' => get_config('wwwroot') . 'view/temp.php'
'goto' => get_config('wwwroot') . 'view/'
)
),
));
......@@ -64,6 +64,6 @@ function deleteview_submit(Pieform $form, $values) {
$view->delete();
handle_event('deleteview', $viewid);
$SESSION->add_ok_msg(get_string('viewdeleted', 'view'));
redirect('/view/temp.php');
redirect('/view/');
}
?>
......@@ -32,7 +32,7 @@ define('SECTION_PLUGINNAME', 'view');
define('SECTION_PAGE', 'index');
require(dirname(dirname(__FILE__)) . '/init.php');
require('pieforms/pieform.php');
require_once('pieforms/pieform.php');
define('TITLE', get_string('myviews', 'view'));
$limit = param_integer('limit', 5);
......
......@@ -63,7 +63,7 @@ $form = pieform(array(
'type' => 'submitcancel',
'title' => get_string('submitviewconfirm', 'view', $view->title, $group->name),
'value' => array(get_string('yes'), get_string('no')),
'goto' => get_config('wwwroot') . 'view/temp.php'
'goto' => get_config('wwwroot') . 'view/'
)
),
));
......@@ -76,7 +76,7 @@ $smarty->display('view/submit.tpl');
function submitview_submit(Pieform $form, $values) {
global $SESSION, $viewid, $groupid;
update_record('view', array('submittedto' => $groupid), array('id' => $viewid));
$SESSION->add_ok_msg(get_string('submitview', 'view'));
redirect('/view/temp.php');
$SESSION->add_ok_msg(get_string('viewsubmitted', 'view'));
redirect('/view/');
}
?>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment