]>
Commit | Line | Data |
---|---|---|
730b9e44 ER |
1 | --- sphinxsearch/action.php~ 2010-10-29 10:26:51.000000000 +0300 |
2 | +++ sphinxsearch/action.php 2010-11-02 10:49:40.942111150 +0200 | |
3 | @@ -10,8 +10,13 @@ | |
4 | ||
5 | require_once(DOKU_INC.'inc/parser/parser.php'); | |
6 | ||
7 | +// No pecl class, try php version | |
8 | +if (!class_exists('SphinxClient')) { | |
9 | + // loads from php include_path | |
10 | + require_once 'sphinxapi.php'; | |
11 | +} | |
12 | + | |
13 | require_once(DOKU_PLUGIN . 'action.php'); | |
14 | -require_once(DOKU_PLUGIN . 'sphinxsearch/sphinxapi.php'); | |
15 | require_once(DOKU_PLUGIN . 'sphinxsearch/PageMapper.php'); | |
16 | require_once(DOKU_PLUGIN . 'sphinxsearch/SphinxSearch.php'); | |
17 | require_once(DOKU_PLUGIN . 'sphinxsearch/functions.php'); |