Skip to content
Browse files

Get rid of entire gallery2 session id param from the urls that we use…

… to alert

users about images that failed to import.
  • Loading branch information...
1 parent 8d2782a commit 6fdc84f5def3b2f51e62bf06e83d01da4593265e @bharat bharat committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 modules/g2_import/helpers/g2_import.php
View
3 modules/g2_import/helpers/g2_import.php
@@ -443,7 +443,8 @@ static function import_item(&$queue) {
// @todo we need a more persistent warning
$g2_item_url = $url_generator->generateUrl(array("itemId" => $g2_item->getId()));
// Why oh why did I ever approve the session id placeholder idea in G2?
- $g2_item_url = str_replace('TMP_SESSION_ID_DI_NOISSES_PMT', '', $g2_item_url);
+ $g2_item_url =
+ str_replace('&g2_GALLERYSID=TMP_SESSION_ID_DI_NOISSES_PMT', '', $g2_item_url);
$warning =
t("<a href=\"%g2_url\">%title</a> from Gallery 2 could not be processed; " .
"(imported as <a href=\"%g3_url\">%title</a>)",

0 comments on commit 6fdc84f

Please sign in to comment.
Something went wrong with that request. Please try again.