Diff
checker
文本
文本
圖像
文檔
Excel
文件夾
Legal
Enterprise
桌面版
定價
登入
下載 Diffchecker 桌面版
比較文本
尋找兩個文字檔案之間的差異
工具
歷史
即時編輯器
摺疊未變更行
關閉換行
檢視
拆分
統一
比對精度
智能
單詞
字符
語法突出顯示
選擇語法
忽略
文字轉換
前往第一個差異
編輯輸入
Diffchecker Desktop
執行Diffchecker最安全的方式。取得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); }
尋找差異