Changeset 916

Show
Ignore:
Timestamp:
06/05/10 00:50:07 (20 months ago)
Author:
ort
Message:

отказ от экранирования тегом <noindex>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/engine/modules/text/Text.class.php

    r891 r916  
    131131                $sResult=$this->VideoParser($sResult);   
    132132                $sResult=$this->CodeSourceParser($sResult); 
    133                 if (Config::Get('view.noindex')) { 
    134                         // требует доработки, т.к. обрабатывает ВСЕ ссылки, включая в <code></code> 
    135                         $sResult=$this->MakeUrlNoIndex($sResult); 
    136                 } 
    137133                return $sResult; 
    138134        } 
     
    181177                return $sText; 
    182178        } 
    183         /** 
    184          * Делает ссылки не видимыми для поисковиков 
    185          * 
    186          * @param unknown_type $sText 
    187          * @return unknown 
    188          */ 
    189         public function MakeUrlNoIndex($sText) { 
    190                 return preg_replace("/(<a .*>.*<\/a>)/Ui","<noindex>$1</noindex>",$sText); 
    191         } 
    192          
    193179        /** 
    194180         * Производить резрезание текста по тегу <cut>.