request_uri was throwing an error in the form action
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 16 Nov 2017 20:13:37 +0000 (15:13 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 16 Nov 2017 20:13:37 +0000 (15:13 -0500)
removed content.request_uri and replaced with request_uri alone in the form action
for index.php in the admin view

controllers/admin.php
views/admin/add/index.html

index 7e9567e..e0370d5 100644 (file)
@@ -393,7 +393,7 @@ class glmProtoAdmin
         // Load Smarty Template support
         require (GLM_PROTO_PLUGIN_DIR . '/lib/smartyPrototypeTemplateSupport.php');
         $smarty = new smartyPrototypeTemplateSupport();
-
+  
         // Add some standard parameters
         $smarty->templateAssign('request_uri', $_SERVER['REQUEST_URI']);
 
index 7c059c5..c2e8e08 100644 (file)
@@ -2,7 +2,7 @@
     
     <h2>Add a New Prototype</h2>
 
-    <form action="{$content.request_uri}" method="post" enctype="multipart/form-data">
+    <form action="{$request_uri}" method="post" enctype="multipart/form-data">
         <input type="hidden" name="glm_proto_action" value="add_submit">
         <table class="form-table">
             <tr>