]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/TokenSpecialTerm.php
change the default location for external data to project dir
[nominatim.git] / lib / TokenSpecialTerm.php
index 46966a8a1bed1e22ec8096bd700f2e2039856cf1..b2c312ec90e53d8a52b022aeb01ab057059fbd3f 100644 (file)
@@ -2,7 +2,7 @@
 
 namespace Nominatim\Token;
 
-require_once(CONST_BasePath.'/lib/SpecialSearchOperator.php');
+require_once(CONST_LibDir.'/SpecialSearchOperator.php');
 
 /**
  * A word token describing a place type.
@@ -34,7 +34,7 @@ class SpecialTerm
                 'Info' => array(
                            'class' => $this->sClass,
                            'type' => $this->sType,
-                           'operator' => Operator::toString($this->iOperator)
+                           'operator' => \Nominatim\Operator::toString($this->iOperator)
                           )
                );
     }