diff --git a/apps/files/ajax/rawlist.php b/apps/files/ajax/rawlist.php
index 531481a84c..40da32b223 100644
--- a/apps/files/ajax/rawlist.php
+++ b/apps/files/ajax/rawlist.php
@@ -3,10 +3,6 @@
// only need filesystem apps
$RUNTIME_APPTYPES=array('filesystem');
-// Init owncloud
-
-require_once 'lib/template.php';
-
OCP\JSON::checkLoggedIn();
// Load the files
diff --git a/apps/files/css/files.css b/apps/files/css/files.css
index b3ecd1dab9..1508f8ac49 100644
--- a/apps/files/css/files.css
+++ b/apps/files/css/files.css
@@ -16,7 +16,10 @@
display:none; position:fixed; min-width:7em; z-index:10;
padding:.5em; padding-bottom:0; margin-top:.075em; margin-left:-.5em;
text-align:left;
- background:#f8f8f8; border:1px solid #ddd; border-radius:10px; border-top-left-radius:0;
+ background: #f8f8f8;
+ border: 1px solid #ddd;
+ border-radius: 5px;
+ border-top-left-radius: 0;
box-shadow:0 2px 7px rgba(170,170,170,.4);
}
#new>ul>li { height:36px; margin:.3em; padding-left:3em; padding-bottom:0.1em;
@@ -228,6 +231,12 @@ table td.filename form { font-size:.85em; margin-left:3em; margin-right:3em; }
-webkit-transition:background-image 500ms; -moz-transition:background-image 500ms; -o-transition:background-image 500ms; transition:background-image 500ms;
}
+#fileList tr td.filename a.name label {
+ position: absolute;
+ width: 100%;
+ height: 50px;
+}
+
#uploadsize-message,#delete-confirm { display:none; }
/* File actions */
diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php
index 35077e7dc1..e578a1f563 100644
--- a/apps/files/templates/index.php
+++ b/apps/files/templates/index.php
@@ -9,7 +9,7 @@
data-type='file'>
t('Text file'));?>
t('Folder'));?>
- t('From link'));?>
diff --git a/apps/files/templates/part.list.php b/apps/files/templates/part.list.php
index 1e4d4d11c9..0679da334d 100644
--- a/apps/files/templates/part.list.php
+++ b/apps/files/templates/part.list.php
@@ -30,16 +30,15 @@ $totalsize = 0; ?>
-
-
-
-
-
+
-
-
-
-
+
+
+
+
+
+
+
diff --git a/core/css/share.css b/core/css/share.css
index b6c5a0c139..2a21dc6edf 100644
--- a/core/css/share.css
+++ b/core/css/share.css
@@ -2,95 +2,97 @@
This file is licensed under the Affero General Public License version 3 or later.
See the COPYING-README file. */
- #dropdown {
- background:#eee;
- border-bottom-left-radius:1em;
- border-bottom-right-radius:1em;
- box-shadow:0 1px 1px #777;
- display:block;
- margin-right:7em;
- position:absolute;
- right:0;
- width:25em;
- z-index:500;
- padding:1em;
- }
+#dropdown {
+ background:#eee;
+ border-bottom-left-radius: 5px;
+ border-bottom-right-radius: 5px;
+ box-shadow:0 1px 1px #777;
+ display:block;
+ margin-right:7em;
+ position:absolute;
+ right:0;
+ width:25em;
+ z-index:500;
+ padding:1em;
+}
- #shareWithList {
- list-style-type:none;
- padding:.5em;
- }
+#shareWithList {
+ list-style-type:none;
+ padding:.5em;
+}
- #shareWithList li {
- padding-top:.1em;
- }
+#shareWithList li {
+ padding-top:.1em;
+}
- #shareWithList li:first-child {
- white-space:normal;
- }
+#shareWithList li:first-child {
+ white-space:normal;
+}
- #shareWithList .cruds {
- margin-left:-10px;
- }
+#shareWithList .cruds {
+ margin-left:-10px;
+}
#shareWithList .unshare img, #shareWithList .showCruds img {
vertical-align:text-bottom; /* properly align icons */
}
- #dropdown label {
- font-weight:400;
- }
+#dropdown label {
+ font-weight:400;
+}
- #dropdown input[type="checkbox"] {
- margin:0 .2em 0 .5em;
- }
+#dropdown input[type="checkbox"] {
+ margin:0 .2em 0 .5em;
+}
- a.showCruds {
- display:inline;
- opacity:.5;
- }
+a.showCruds {
+ display:inline;
+ opacity:.5;
+}
- a.unshare {
- display:inline;
- float:right;
- opacity:.5;
- padding:.3em 0 0 .3em !important;
+a.unshare {
+ display:inline;
+ float:right;
+ opacity:.5;
+ padding:.3em 0 0 .3em !important;
margin-top:-5px;
- }
+}
- #link {
- border-top:1px solid #ddd;
- padding-top:.5em;
- }
+#link {
+ border-top:1px solid #ddd;
+ padding-top:.5em;
+}
#dropdown input[type="text"],#dropdown input[type="password"] {
- width:90%;
+ width:90%;
}
#dropdown form {
- font-size: 100%;
- margin-left: 0;
- margin-right: 0;
+ font-size: 100%;
+ margin-left: 0;
+ margin-right: 0;
}
#linkText,#linkPass,#expiration {
- display:none;
- }
+ display:none;
+}
- #link #showPassword img {
- padding-left:.3em;
- width:12px;
- }
+#link #showPassword img {
+ padding-left:.3em;
+ width:12px;
+}
- .reshare,#link label,#expiration label {
- padding-left:.5em;
- }
+.reshare,#link label,#expiration label {
+ padding-left:.5em;
+}
- a.showCruds:hover,a.unshare:hover {
- opacity:1;
- }
+a.showCruds:hover,a.unshare:hover {
+ opacity:1;
+}
-.reshare { white-space:normal; } /* fix shared by text going out of box */
+.reshare { /* fix shared by text going out of box */
+ white-space:normal;
+}
.ui-autocomplete { /* limit dropdown height to 4 1/2 entries */
max-height:103px;
diff --git a/core/css/styles.css b/core/css/styles.css
index dcdeda8a9c..06b61f0fa6 100644
--- a/core/css/styles.css
+++ b/core/css/styles.css
@@ -19,9 +19,6 @@ body { background:#fefefe; font:normal .8em/1.6em "Helvetica Neue",Helvetica,Ari
#body-user #header, #body-settings #header {
position:fixed; top:0; left:0; right:0; z-index:100; height:45px; line-height:2.5em;
background:#1d2d44 url('../img/noise.png') repeat;
- -moz-box-shadow:0 0 10px rgba(0, 0, 0, .5);
- -webkit-box-shadow:0 0 10px rgba(0, 0, 0, .5);
- box-shadow:0 0 10px rgba(0, 0, 0, .5);
}
#body-login {
@@ -164,7 +161,6 @@ input[type="submit"].enabled { background:#66f866; border:1px solid #5e5; -moz-b
border-bottom: 1px solid #e7e7e7;
z-index: 50;
-moz-box-sizing: border-box; box-sizing: border-box;
- -moz-box-shadow: 0 -3px 7px #000; -webkit-box-shadow: 0 -3px 7px #000; box-shadow: 0 -3px 7px #000;
}
#controls .button {
display: inline-block;
@@ -512,7 +508,6 @@ label.infield { cursor:text !important; top:1.05em; left:.85em; }
z-index: 75;
height: 100%;
background:#383c43 url('../img/noise.png') repeat;
- -moz-box-shadow:0 0 7px #000; -webkit-box-shadow:0 0 7px #000; box-shadow:0 0 7px #000;
overflow:hidden; box-sizing:border-box; -moz-box-sizing:border-box;
/* prevent ugly selection effect on accidental selection */
-webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
diff --git a/core/img/places/link.png b/core/img/places/link.png
new file mode 100644
index 0000000000..44b7e199a7
Binary files /dev/null and b/core/img/places/link.png differ
diff --git a/core/img/places/link.svg b/core/img/places/link.svg
new file mode 100644
index 0000000000..8784ebc145
--- /dev/null
+++ b/core/img/places/link.svg
@@ -0,0 +1,12 @@
+
diff --git a/lib/autoloader.php b/lib/autoloader.php
index 8b12e6bc4b..b5b5891837 100644
--- a/lib/autoloader.php
+++ b/lib/autoloader.php
@@ -77,6 +77,7 @@ class Autoloader {
$paths[] = 'private/' . strtolower(str_replace('_', '/', substr($class, 3)) . '.php');
} elseif (strpos($class, 'OC\\') === 0) {
$paths[] = 'private/' . strtolower(str_replace('\\', '/', substr($class, 3)) . '.php');
+ $paths[] = strtolower(str_replace('\\', '/', substr($class, 3)) . '.php');
} elseif (strpos($class, 'OCP\\') === 0) {
$paths[] = 'public/' . strtolower(str_replace('\\', '/', substr($class, 4)) . '.php');
} elseif (strpos($class, 'OCA\\') === 0) {
diff --git a/lib/private/files/cache/upgrade.php b/lib/private/files/cache/upgrade.php
index cfb9a11731..e3a46896cb 100644
--- a/lib/private/files/cache/upgrade.php
+++ b/lib/private/files/cache/upgrade.php
@@ -192,7 +192,15 @@ class Upgrade {
*/
static function needUpgrade($user) {
$cacheVersion = (int)\OCP\Config::getUserValue($user, 'files', 'cache_version', 4);
- return $cacheVersion < 5;
+ if ($cacheVersion < 5) {
+ $legacy = new \OC\Files\Cache\Legacy($user);
+ if ($legacy->hasItems()) {
+ return true;
+ }
+ self::upgradeDone($user);
+ }
+
+ return false;
}
/**
diff --git a/tests/lib/autoloader.php b/tests/lib/autoloader.php
index b182dc8747..314a8ebee8 100644
--- a/tests/lib/autoloader.php
+++ b/tests/lib/autoloader.php
@@ -19,11 +19,11 @@ class AutoLoader extends \PHPUnit_Framework_TestCase {
}
public function testLeadingSlashOnClassName() {
- $this->assertEquals(array('private/files/storage/local.php'), $this->loader->findClass('\OC\Files\Storage\Local'));
+ $this->assertEquals(array('private/files/storage/local.php', 'files/storage/local.php'), $this->loader->findClass('\OC\Files\Storage\Local'));
}
public function testNoLeadingSlashOnClassName() {
- $this->assertEquals(array('private/files/storage/local.php'), $this->loader->findClass('OC\Files\Storage\Local'));
+ $this->assertEquals(array('private/files/storage/local.php', 'files/storage/local.php'), $this->loader->findClass('OC\Files\Storage\Local'));
}
public function testLegacyPath() {
@@ -54,7 +54,7 @@ class AutoLoader extends \PHPUnit_Framework_TestCase {
}
public function testLoadCoreNamespace() {
- $this->assertEquals(array('private/foo/bar.php'), $this->loader->findClass('OC\Foo\Bar'));
+ $this->assertEquals(array('private/foo/bar.php', 'foo/bar.php'), $this->loader->findClass('OC\Foo\Bar'));
}
public function testLoadCore() {