diff --git a/composer.json b/composer.json index d2a49f7..d3a2b59 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "tapioca/client-php" - , "version": "0.2.41" + , "version": "0.3.0" , "type": "library" , "description": "Tapioca PHP client" , "keywords": ["Tapioca", "MongoDb", "CMS"] diff --git a/src/Tapioca/Driver.php b/src/Tapioca/Driver.php index 59ab4b1..459b331 100644 --- a/src/Tapioca/Driver.php +++ b/src/Tapioca/Driver.php @@ -278,7 +278,7 @@ public function reset() $this->_tapioca = array(); $this->_select = array(); $this->_where = array( '_tapioca.status' => 100 ); - $this->_sort = array( '$natural' => -1 ); + $this->_sort = array(); // '$natural' => -1 ); $this->_limit = 99999; $this->_skip = 0; } diff --git a/src/Tapioca/Driver/Rest.php b/src/Tapioca/Driver/Rest.php index 7207e9f..4296752 100644 --- a/src/Tapioca/Driver/Rest.php +++ b/src/Tapioca/Driver/Rest.php @@ -93,9 +93,9 @@ protected function getRest( $collection = null ) $url .= '/' . $this->_ref; $arg = array('l' => null); - if( isset( $this->_tapioca['locale'] ) ) + if( isset( $this->_locale ) ) { - $arg['l'] = $this->_tapioca['locale']; + $arg['l'] = $this->_locale; } $request = static::$rest->get( array( $url . '{?key,l}', $arg ) );