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