Dotclear


Ignore:
Timestamp:
11/17/13 20:25:53 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.6
Children:
2567:6c11245cbf04, 2568:61c67a7d17fa
Message:

Add some people in CREDITS, remove trailing spaces and tabs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/blogroll/class.dc.importblogroll.php

    r1179 r2566  
    1515{ 
    1616     protected $entries = null; 
    17            
     17 
    1818     public function parse($data) 
    1919     { 
     
    2828          } 
    2929     } 
    30       
    31       
     30 
     31 
    3232     protected function _parseOPML($data) 
    3333     { 
    3434          $xml = @simplexml_load_string($data); 
    3535          if (!$xml) throw new Exception(__('File is not in XML format.')); 
    36            
     36 
    3737          $outlines = $xml->xpath("//outline"); 
    38            
     38 
    3939          $this->entries = array(); 
    4040          foreach ($outlines as $outline) { 
     
    5656          } 
    5757     } 
    58       
     58 
    5959     protected function _parseXBEL($data) 
    6060     { 
    6161          $xml = @simplexml_load_string($data); 
    6262          if (!$xml) throw new Exception(__('File is not in XML format.')); 
    63            
     63 
    6464          $outlines = $xml->xpath("//bookmark"); 
    65            
     65 
    6666          $this->entries = array(); 
    6767          foreach ($outlines as $outline) { 
     
    7777          } 
    7878     } 
    79       
    80       
     79 
     80 
    8181     public function getAll() 
    8282     { 
     
    8484          return $this->entries; 
    8585     } 
    86            
     86 
    8787} 
    8888 
    8989class dcImportBlogroll { 
    90       
     90 
    9191     public static function loadFile($file) 
    9292     { 
    9393          if (file_exists($file) && is_readable($file)) { 
    9494               $importer = new linksImporter(); 
    95                $importer->parse(file_get_contents($file));        
     95               $importer->parse(file_get_contents($file)); 
    9696               return $importer->getAll(); 
    9797          } 
     
    9999     } 
    100100} 
    101 ?> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map