Changeset 82834 in spip-zone


Ignore:
Timestamp:
Jun 3, 2014, 8:36:37 AM (5 years ago)
Author:
marcimat@…
Message:

Encore des array pour les vieux php :p

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/indexer/trunk/lib/Indexer/Storage/Sphinx.php

    r82602 r82834  
    3838                echo "<pre>".print_r($q, true)."</pre>";
    3939                exit;
    40             }         
     40            }
    4141        }
    4242
     
    6868
    6969    public function replaceDocument(Document $document){
    70         $this->replaceDocuments([$document]);
     70        $this->replaceDocuments(array($document));
    7171    }
    7272
    7373
    7474    public function reformatDocument(Document $document) {
    75         return [
     75        return array(
    7676           "id" => $document->id,
    7777           "title" => $document->title,
     
    8282           "properties" => json_encode($document->properties),
    8383            "signature" => $this->signer($document),
    84         ];
     84        );
    8585    }
    8686
Note: See TracChangeset for help on using the changeset viewer.