Skip to content

Commit 9723e8b

Browse files
committed
refactor properly
1 parent 5ff5823 commit 9723e8b

File tree

1 file changed

+0
-26
lines changed
  • app/design/frontend/base/default/template/piwikanalytics

1 file changed

+0
-26
lines changed

app/design/frontend/base/default/template/piwikanalytics/piwik.phtml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -19,30 +19,9 @@
1919

2020
if ($siteId) {
2121

22-
<<<<<<< HEAD
2322
/*remove https or https*/
2423
$installPath = preg_replace('#^https?:#', '', $installPath);
2524

26-
=======
27-
/*path for noscript should take unaltered path*/
28-
$bugPath = $installPath;
29-
30-
if (strpos($installPath, 'https://') !== false) {
31-
$secureInstallPath = $installPath;
32-
$installPath = str_replace('https://', 'http://', $installPath);
33-
}
34-
if (strpos($installPath, 'http://') === false) {
35-
$installPath = 'http://' . $installPath;
36-
$secureInstallPath = str_replace('http://', 'https://', $installPath);
37-
}
38-
39-
$last = $installPath[strlen($installPath) - 1];
40-
41-
if ($last != '/') {
42-
$installPath .= '/';
43-
$secureInstallPath .= '/';
44-
}
45-
>>>>>>> origin/master
4625

4726
// 0 Search Results
4827
if($this->getRequest()->getControllerName()=='result') {
@@ -59,14 +38,9 @@
5938
<script type="text/javascript">
6039
//<![CDATA[
6140
var _paq = _paq || [];
62-
<<<<<<< HEAD
6341
(function(){
6442
var u="<?php echo $installPath ?>";
6543
_paq.push(['setSiteId', <?php echo $siteId ?>]);
66-
=======
67-
(function(){ var u=(("https:" == document.location.protocol) ? "<?php echo $secureInstallPath ?>" : "<?php echo $installPath ?>");
68-
_paq.push(['setSiteId', <?php echo $siteId ?>]);
69-
>>>>>>> origin/master
7044
_paq.push(['setTrackerUrl', u+'piwik.php']);
7145
<?php echo $this->_getEcommerceCartUpdate()?>
7246
<?php echo $this->_getOrdersTrackingCode()?>

0 commit comments

Comments
 (0)