|
19 | 19 |
|
20 | 20 | if ($siteId) {
|
21 | 21 |
|
22 |
| -<<<<<<< HEAD |
23 | 22 | /*remove https or https*/
|
24 | 23 | $installPath = preg_replace('#^https?:#', '', $installPath);
|
25 | 24 |
|
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 |
46 | 25 |
|
47 | 26 | // 0 Search Results
|
48 | 27 | if($this->getRequest()->getControllerName()=='result') {
|
|
59 | 38 | <script type="text/javascript">
|
60 | 39 | //<![CDATA[
|
61 | 40 | var _paq = _paq || [];
|
62 |
| -<<<<<<< HEAD |
63 | 41 | (function(){
|
64 | 42 | var u="<?php echo $installPath ?>";
|
65 | 43 | _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 |
70 | 44 | _paq.push(['setTrackerUrl', u+'piwik.php']);
|
71 | 45 | <?php echo $this->_getEcommerceCartUpdate()?>
|
72 | 46 | <?php echo $this->_getOrdersTrackingCode()?>
|
|
0 commit comments