Diff
checker
텍스트
텍스트
이미지
문서
Excel
폴더
Legal
Enterprise
데스크톱
요금제
로그인
데스크톱 앱 다운로드
텍스트 비교
두 텍스트 파일의 차이점을 찾아보세요
도구
기록
실시간 편집
변경 없는 행 숨기기
줄바꿈 비활성화
레이아웃
나란히 보기
합쳐 보기
비교 단위
스마트
단어
글자
구문 강조
언어 선택
제외
텍스트 변환
첫 변경으로
수정
Diffchecker Desktop
가장 안전하게 Diffchecker를 사용하는 방법. 데스크톱 앱을 사용하면 비교 데이터가 외부로 전송되지 않습니다!
데스크톱 앱 받기
fix_profile_seo_lang
생성일
6년 전
비교 결과 만료 없음
초기화
내보내기
공유
설명
1 삭제
행
총
삭제
글자
총
삭제
이 기능을 계속 사용하려면 업그레이드해 주세요
Diff
checker
Pro
요금제 보기
44 행
복사
8 추가
행
총
추가
글자
총
추가
이 기능을 계속 사용하려면 업그레이드해 주세요
Diff
checker
Pro
요금제 보기
51 행
복사
public function getLanguageLink($idLang, Context $context = null)
public function getLanguageLink($idLang, Context $context = null)
{
{
if (!$context) {
if (!$context) {
$context = Context::getContext();
$context = Context::getContext();
}
}
$params = $_GET;
$params = $_GET;
unset($params['isolang'], $params['controller']);
unset($params['isolang'], $params['controller']);
if (!$this->allow) {
if (!$this->allow) {
$params['id_lang'] = $idLang;
$params['id_lang'] = $idLang;
} else {
} else {
unset($params['id_lang']);
unset($params['id_lang']);
}
}
$controller = Dispatcher::getInstance()->getController();
$controller = Dispatcher::getInstance()->getController();
if (!empty($context->controller->php_self)) {
if (!empty($context->controller->php_self)) {
$controller = $context->controller->php_self;
$controller = $context->controller->php_self;
}
}
복사
복사됨
복사
복사됨
if (isset($params['fc']) && isset($params['module'])) {
if($params['fc'] == 'module' && $params['module'] == 'appagebuilder' && $controller == 'appagebuilderhome')
unset($params['fc']);
unset($params['module']);
$controller = 'index';
}
if ($controller == 'product' && isset($params['id_product'])) {
if ($controller == 'product' && isset($params['id_product'])) {
return $this->getProductLink((int) $params['id_product'], null, null, null, (int) $idLang);
return $this->getProductLink((int) $params['id_product'], null, null, null, (int) $idLang);
} elseif ($controller == 'category' && isset($params['id_category'])) {
} elseif ($controller == 'category' && isset($params['id_category'])) {
return $this->getCategoryLink((int) $params['id_category'], null, (int) $idLang);
return $this->getCategoryLink((int) $params['id_category'], null, (int) $idLang);
} elseif ($controller == 'supplier' && isset($params['id_supplier'])) {
} elseif ($controller == 'supplier' && isset($params['id_supplier'])) {
return $this->getSupplierLink((int) $params['id_supplier'], null, (int) $idLang);
return $this->getSupplierLink((int) $params['id_supplier'], null, (int) $idLang);
} elseif ($controller == 'manufacturer' && isset($params['id_manufacturer'])) {
} elseif ($controller == 'manufacturer' && isset($params['id_manufacturer'])) {
return $this->getManufacturerLink((int) $params['id_manufacturer'], null, (int) $idLang);
return $this->getManufacturerLink((int) $params['id_manufacturer'], null, (int) $idLang);
} elseif ($controller == 'cms' && isset($params['id_cms'])) {
} elseif ($controller == 'cms' && isset($params['id_cms'])) {
return $this->getCMSLink(new CMS((int) $params['id_cms']), null, null, (int) $idLang);
return $this->getCMSLink(new CMS((int) $params['id_cms']), null, null, (int) $idLang);
} elseif ($controller == 'cms' && isset($params['id_cms_category'])) {
} elseif ($controller == 'cms' && isset($params['id_cms_category'])) {
return $this->getCMSCategoryLink(new CMSCategory((int) $params['id_cms_category']), null, (int) $idLang);
return $this->getCMSCategoryLink(new CMSCategory((int) $params['id_cms_category']), null, (int) $idLang);
} elseif (isset($params['fc']) && $params['fc'] == 'module') {
} elseif (isset($params['fc']) && $params['fc'] == 'module') {
$module = Validate::isModuleName(Tools::getValue('module')) ? Tools::getValue('module') : '';
$module = Validate::isModuleName(Tools::getValue('module')) ? Tools::getValue('module') : '';
if (!empty($module)) {
if (!empty($module)) {
unset($params['fc'], $params['module']);
unset($params['fc'], $params['module']);
return $this->getModuleLink($module, $controller, $params, null, (int) $idLang);
return $this->getModuleLink($module, $controller, $params, null, (int) $idLang);
}
}
}
}
return $this->getPageLink($controller, null, $idLang, $params);
return $this->getPageLink($controller, null, $idLang, $params);
}
}
저장된 비교 결과
원본
파일 열기
public function getLanguageLink($idLang, Context $context = null) { if (!$context) { $context = Context::getContext(); } $params = $_GET; unset($params['isolang'], $params['controller']); if (!$this->allow) { $params['id_lang'] = $idLang; } else { unset($params['id_lang']); } $controller = Dispatcher::getInstance()->getController(); if (!empty($context->controller->php_self)) { $controller = $context->controller->php_self; } if ($controller == 'product' && isset($params['id_product'])) { return $this->getProductLink((int) $params['id_product'], null, null, null, (int) $idLang); } elseif ($controller == 'category' && isset($params['id_category'])) { return $this->getCategoryLink((int) $params['id_category'], null, (int) $idLang); } elseif ($controller == 'supplier' && isset($params['id_supplier'])) { return $this->getSupplierLink((int) $params['id_supplier'], null, (int) $idLang); } elseif ($controller == 'manufacturer' && isset($params['id_manufacturer'])) { return $this->getManufacturerLink((int) $params['id_manufacturer'], null, (int) $idLang); } elseif ($controller == 'cms' && isset($params['id_cms'])) { return $this->getCMSLink(new CMS((int) $params['id_cms']), null, null, (int) $idLang); } elseif ($controller == 'cms' && isset($params['id_cms_category'])) { return $this->getCMSCategoryLink(new CMSCategory((int) $params['id_cms_category']), null, (int) $idLang); } elseif (isset($params['fc']) && $params['fc'] == 'module') { $module = Validate::isModuleName(Tools::getValue('module')) ? Tools::getValue('module') : ''; if (!empty($module)) { unset($params['fc'], $params['module']); return $this->getModuleLink($module, $controller, $params, null, (int) $idLang); } } return $this->getPageLink($controller, null, $idLang, $params); }
수정본
파일 열기
public function getLanguageLink($idLang, Context $context = null) { if (!$context) { $context = Context::getContext(); } $params = $_GET; unset($params['isolang'], $params['controller']); if (!$this->allow) { $params['id_lang'] = $idLang; } else { unset($params['id_lang']); } $controller = Dispatcher::getInstance()->getController(); if (!empty($context->controller->php_self)) { $controller = $context->controller->php_self; } if (isset($params['fc']) && isset($params['module'])) { if($params['fc'] == 'module' && $params['module'] == 'appagebuilder' && $controller == 'appagebuilderhome') unset($params['fc']); unset($params['module']); $controller = 'index'; } if ($controller == 'product' && isset($params['id_product'])) { return $this->getProductLink((int) $params['id_product'], null, null, null, (int) $idLang); } elseif ($controller == 'category' && isset($params['id_category'])) { return $this->getCategoryLink((int) $params['id_category'], null, (int) $idLang); } elseif ($controller == 'supplier' && isset($params['id_supplier'])) { return $this->getSupplierLink((int) $params['id_supplier'], null, (int) $idLang); } elseif ($controller == 'manufacturer' && isset($params['id_manufacturer'])) { return $this->getManufacturerLink((int) $params['id_manufacturer'], null, (int) $idLang); } elseif ($controller == 'cms' && isset($params['id_cms'])) { return $this->getCMSLink(new CMS((int) $params['id_cms']), null, null, (int) $idLang); } elseif ($controller == 'cms' && isset($params['id_cms_category'])) { return $this->getCMSCategoryLink(new CMSCategory((int) $params['id_cms_category']), null, (int) $idLang); } elseif (isset($params['fc']) && $params['fc'] == 'module') { $module = Validate::isModuleName(Tools::getValue('module')) ? Tools::getValue('module') : ''; if (!empty($module)) { unset($params['fc'], $params['module']); return $this->getModuleLink($module, $controller, $params, null, (int) $idLang); } } return $this->getPageLink($controller, null, $idLang, $params); }
비교하기