From 8fe67efeb111aced913c854f8cb94d26cdec1e1d Mon Sep 17 00:00:00 2001
From: Tim Steiner <tsteiner2@unl.edu>
Date: Wed, 15 May 2013 13:37:21 -0500
Subject: [PATCH] [gh-723] Fix Liferay migration of /web/site-name sites when
 migrated from that path. @0h30

---
 sites/all/modules/unl_migration/unl_migration.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sites/all/modules/unl_migration/unl_migration.php b/sites/all/modules/unl_migration/unl_migration.php
index b68dc4dc9..169d0f901 100755
--- a/sites/all/modules/unl_migration/unl_migration.php
+++ b/sites/all/modules/unl_migration/unl_migration.php
@@ -1029,6 +1029,7 @@ class Unl_Migration_Tool
       if (
            count($pathParts) >= 2 && $pathParts[0] == 'web'
         && !(in_array($urlParts['host'], array_keys($this->_liferaySubsites)) && in_array($pathParts[1], $this->_liferaySubsites[$urlParts['host']]))
+        && substr(parse_url($this->_baseUrl, PHP_URL_PATH), 0, 5) != '/web/'
       ) {
 
         // If the site name is "special" look it up in the map. Otherwise, just add .unl.edu
-- 
GitLab