diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-11-05 12:41:11 +0400 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-11-05 12:41:11 +0400 |
commit | f91fe8d595d3ab00dcf2e6b68fba3a92616143f5 (patch) | |
tree | 3f28ead53351ed3ed626d48972dbcb6e8e3df794 /lib | |
parent | d48ba5a5bf0668690e54d4ed68f8aa31d8946cf9 (diff) | |
parent | 8274d9f91c4fbe98ad06ec7f44cd73cd7417ab03 (diff) |
Merge pull request #5673 from owncloud/oc6-windows-server-mssql-master
Oc6 windows server mssql master
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/db/adaptersqlsrv.php | 7 | ||||
-rw-r--r-- | lib/private/files/storage/home.php | 7 |
2 files changed, 3 insertions, 11 deletions
diff --git a/lib/private/db/adaptersqlsrv.php b/lib/private/db/adaptersqlsrv.php index d0a67af28a7..a6bc0e21052 100644 --- a/lib/private/db/adaptersqlsrv.php +++ b/lib/private/db/adaptersqlsrv.php @@ -10,13 +10,6 @@ namespace OC\DB; class AdapterSQLSrv extends Adapter { - public function lastInsertId($table) { - if($table !== null) { - $table = $this->conn->replaceTablePrefix( $table ); - } - return $this->conn->lastInsertId($table); - } - public function fixupStatement($statement) { $statement = preg_replace( "/\`(.*?)`/", "[$1]", $statement ); $statement = str_ireplace( 'NOW()', 'CURRENT_TIMESTAMP', $statement ); diff --git a/lib/private/files/storage/home.php b/lib/private/files/storage/home.php index 47a76c1b840..bf1d6017cbf 100644 --- a/lib/private/files/storage/home.php +++ b/lib/private/files/storage/home.php @@ -19,10 +19,9 @@ class Home extends Local { public function __construct($arguments) { $this->user = $arguments['user']; - $this->datadir = $this->user->getHome(); - if (substr($this->datadir, -1) !== '/') { - $this->datadir .= '/'; - } + $datadir = $this->user->getHome(); + + parent::__construct(array('datadir' => $datadir)); } public function getId() { |