public
Description: Git mirror of the CMS Made Simple 2.0 rewrite
Homepage: http://cmsmadesimple.org
Clone URL: git://github.com/tedkulp/cmsmadesimple-2-0.git
Added the from parameter


git-svn-id: http://svn.cmsmadesimple.org/svn/cmsmadesimple/trunk@4085 
3d254a34-79dc-0310-9e5f-be208747d8a0
calguy1000 (author)
Thu Aug 23 10:45:27 -0700 2007
commit  8094ed39a35c63a6fb0a2d5e3335817baeeec707
tree    3bda8107fd0fa10efba9ed71b37cc8c04280f565
parent  7c6bdda7fb3291f2f50d604aa6c1eb6b99249ae9
...
25
26
27
 
 
 
 
 
 
 
28
29
30
...
83
84
85
86
 
87
88
89
90
 
91
92
93
...
25
26
27
28
29
30
31
32
33
34
35
36
37
...
90
91
92
 
93
94
95
96
 
97
98
99
100
0
@@ -25,6 +25,13 @@ require_once("../lib/classes/class.template.inc.php");
0
 
0
 check_login();
0
 
0
+$from = 'listtemplates.php';
0
+if (isset($_GET['from']) )
0
+ {
0
+ $from = 'moduleinterface.php?module='.$_GET['from'];
0
+ }
0
+
0
+
0
 $dodelete = true;
0
 $template_id = -1;
0
 if (isset($_GET["template_id"]))
0
@@ -83,11 +90,11 @@ if (isset($_GET["template_id"]))
0
 
0
 if ($dodelete)
0
 {
0
- redirect("listtemplates.php");
0
+ redirect($from);
0
 }
0
 else
0
 {
0
- redirect("listtemplates.php?message=".lang('errortemplateinuse'));
0
+ redirect($from."message=".lang('errortemplateinuse'));
0
 }
0
 
0
 # vim:ts=4 sw=4 noet

Comments

    No one has commented yet.