]> source.dussan.org Git - nextcloud-server.git/commitdiff
General fixes
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>
Tue, 9 Jul 2013 21:49:05 +0000 (00:49 +0300)
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>
Tue, 9 Jul 2013 21:49:05 +0000 (00:49 +0300)
lib/setup/oci.php

index 577948766bd8abc459621a5abdaca638e1b58714..86b53de45a49513d9021be521b145874f89db953 100644 (file)
@@ -9,8 +9,8 @@ class OCI extends AbstractDatabase {
 
        public function initialize($config) {
                parent::initialize($config);
-               if (array_key_exists('dbtablespace', $options)) {
-                       $this->dbtablespace = $options['dbtablespace'];
+               if (array_key_exists('dbtablespace', $config)) {
+                       $this->dbtablespace = $config['dbtablespace'];
                } else {
                        $this->dbtablespace = 'USERS';
                }
@@ -31,14 +31,14 @@ class OCI extends AbstractDatabase {
                if(!$connection) {
                        $e = oci_error();
                        if (is_array ($e) && isset ($e['message'])) {
-                               throw new DatabaseSetupException($l->t('Oracle connection could not be established'),
+                               throw new \DatabaseSetupException($this->trans->t('Oracle connection could not be established'),
                                $e['message'].' Check environment: ORACLE_HOME='.getenv('ORACLE_HOME')
                                                        .' ORACLE_SID='.getenv('ORACLE_SID')
                                                        .' LD_LIBRARY_PATH='.getenv('LD_LIBRARY_PATH')
                                                        .' NLS_LANG='.getenv('NLS_LANG')
                                                        .' tnsnames.ora is '.(is_readable(getenv('ORACLE_HOME').'/network/admin/tnsnames.ora')?'':'not ').'readable');
                        }
-                       throw new DatabaseSetupException($l->t('Oracle username and/or password not valid'),
+                       throw new \DatabaseSetupException($this->trans->t('Oracle username and/or password not valid'),
                                        'Check environment: ORACLE_HOME='.getenv('ORACLE_HOME')
                                                        .' ORACLE_SID='.getenv('ORACLE_SID')
                                                        .' LD_LIBRARY_PATH='.getenv('LD_LIBRARY_PATH')