1.1 restoration
[mir.git] / templates / admin / FUNCTIONS_media.template
index 70ec3e1..de87ba3 100755 (executable)
 </function>
 
 <function MediaList (module)>
+    <if returnurl>
+      <call showAddOrBack2("1", module, returnurl)>
+    <else>
+      <call showAddOrBack("1", module, "Admin", "start")>
+    </if>
 
-  <call showAddOrBack("1", module, "Admin", "start")>
     <if medialist>
       <call showPrevNextLinks(prevurl, nexturl, "left")>
 
       </table>
       
       <call showPrevNextLinks(prevurl, nexturl, "left")>
-      <call showAddOrBack("1", module, "Admin", "start")>
+
+      <if returnurl>
+        <call showAddOrBack2("1", module, returnurl)>
+      <else>
+        <call showAddOrBack("1", module, "Admin", "start")>
+      </if>
   
     <else>
       <P align="center">${lang("no_matches_found")}</p>