Use 'uid' instead of 'muid'
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 22 Jan 2010 22:29:47 +0000 (15:29 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 26 Jan 2010 20:42:49 +0000 (13:42 -0700)
imp/lib/Contents.php
imp/saveimage.php
imp/templates/saveimage/saveimage.html

index 4e78bc4..abf2854 100644 (file)
@@ -693,7 +693,7 @@ class IMP_Contents
         if (($mask && self::SUMMARY_IMAGE_SAVE) &&
             $GLOBALS['registry']->hasMethod('images/selectGalleries') &&
             ($mime_part->getPrimaryType() == 'image')) {
-            $part['img_save'] = Horde::link('#', _("Save Image in Gallery"), 'saveImgAtc', null, Horde::popupJs(Horde::applicationUrl('saveimage.php'), array('params' => array('muid' => ($this->_uid . IMP::IDX_SEP . $this->_mailbox), 'id' => $id), 'height' => 200, 'width' => 450)) . 'return false;') . '</a>';
+            $part['img_save'] = Horde::link('#', _("Save Image in Gallery"), 'saveImgAtc', null, Horde::popupJs(Horde::applicationUrl('saveimage.php'), array('params' => array('uid' => ($this->_uid . IMP::IDX_SEP . $this->_mailbox), 'id' => $id), 'height' => 200, 'width' => 450)) . 'return false;') . '</a>';
         }
 
         /* Strip Attachment? Allow stripping of base parts other than the
index 8f87575..c36fdbf 100644 (file)
@@ -15,12 +15,12 @@ require_once dirname(__FILE__) . '/lib/Application.php';
 Horde_Registry::appInit('imp');
 
 $id = Horde_Util::getFormData('id');
-$muid = Horde_Util::getFormData('muid');
+$uid = Horde_Util::getFormData('uid');
 
 /* Run through the action handlers. */
 switch (Horde_Util::getFormData('actionID')) {
 case 'save_image':
-    $contents = IMP_Contents::singleton($muid);
+    $contents = IMP_Contents::singleton($uid);
     $mime_part = $contents->getMIMEPart($id);
     $image_data = array(
         'data' => $mime_part->getContents(),
@@ -48,7 +48,7 @@ $t = new Horde_Template();
 $t->setOption('gettext', true);
 $t->set('action', Horde::applicationUrl('saveimage.php'));
 $t->set('id', htmlspecialchars($id));
-$t->set('muid', htmlspecialchars($muid));
+$t->set('uid', htmlspecialchars($uid));
 $t->set('image_img', Horde::img('mime/image.png', _("Image"), null, $registry->getImageDir('horde')));
 
 /* Build the list of galleries. */
index 153f1b7..92a7e09 100644 (file)
@@ -1,7 +1,7 @@
 <form method="post" name="save_image_dialog" action="<tag:action />">
 <input type="hidden" name="actionID" value="save_image" />
 <input type="hidden" name="id" value="<tag:id />" />
-<input type="hidden" name="index" value="<tag:index />" />
+<input type="hidden" name="uid" value="<tag:uid />" />
 
 <h1 class="header">
  <tag:image_img />