Oprava lotkoviny - spatny relativni linky
authorThomas Mudrunka <tomas@mudrunka.cz>
Tue, 10 Apr 2012 17:24:12 +0000 (19:24 +0200)
committerThomas Mudrunka <tomas@mudrunka.cz>
Tue, 10 Apr 2012 17:24:12 +0000 (19:24 +0200)
index.php

index 640708eb71187ca32f1012dbd41b8dfda6f23c95..74fcabaf4345f6a362da080f6a5e37b96a80d36f 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -361,7 +361,7 @@ EOF;
                        'model' => array(
                                'model_id' => array(array('item',$where_url),array('edit','model/%v/edit/')),
                                'model_barcode' => array(array('store','assistant/%d?barcode=%v')),
-                               'model_name' => array(array('google','http://google.com/search?q=%v',true)) //TODO: add manufacturer to google query
+                               'model_name' => array(array('google','http://google.com/search?q=%v')) //TODO: add manufacturer to google query
                        ),
                        'item' => array(
                                'item_serial' => array(array('dispose','assistant/%d?serial=%v','in_stock'),array('sell','assistant/%d?serial=%v','in_stock')),
@@ -391,7 +391,7 @@ EOF;
                                                        //$condition = $relations_conditions[$destination[2]]($table,$id);
                                                        if(!eval($relations_conditions[$destination[2]])) continue;
                                                }
-                                               @$table[$id][$class.$suffix_relations] .= $this->link($destination[0], $destination_url, false).',';
+                                               @$table[$id][$class.$suffix_relations] .= $this->link($destination[0], $destination_url, !preg_match('/http/', $destination_url) ).',';
                                        }
                                }
                        }
This page took 0.099418 seconds and 4 git commands to generate.