OCP\JSON::callCheck();
// Get data
- $dir = stripslashes($_GET["dir"]);
- $file = stripslashes($_GET["file"]);
- $target = stripslashes(rawurldecode($_GET["target"]));
+ $dir = stripslashes($_POST["dir"]);
+ $file = stripslashes($_POST["file"]);
+ $target = stripslashes(rawurldecode($_POST["target"]));
-$l=OC_L10N::get('files');
-
-if(OC_Filesystem::file_exists($target . '/' . $file)) {
- OCP\JSON::error(array("data" => array( "message" => $l->t("Could not move %s - File with this name already exists", array($file)) )));
+if(\OC\Files\Filesystem::file_exists($target . '/' . $file)) {
+ OCP\JSON::error(array("data" => array( "message" => "Could not move $file - File with this name already exists" )));
exit;
}
div.crumb a{ padding:0.9em 0 0.7em 0; }
-}
+ table.dragshadow {
+ width:auto;
+ }
+ table.dragshadow td.filename {
+ padding-left:36px;
+ padding-right:16px;
+ }
+ table.dragshadow td.size {
+ padding-right:8px;
++}
+#upgrade {
+ width: 400px;
+ position: absolute;
+ top: 200px;
+ left: 50%;
+ text-align: center;
+ margin-left: -200px;
+}
OCP\Util::addScript('files', 'fileactions');
$tmpl = new OCP\Template('files_sharing', 'public', 'base');
$tmpl->assign('uidOwner', $shareOwner);
+ $tmpl->assign('displayName', \OCP\User::getDisplayName($shareOwner));
$tmpl->assign('dir', $dir);
$tmpl->assign('filename', $file);
- $tmpl->assign('mimetype', OC_Filesystem::getMimeType($path));
+ $tmpl->assign('mimetype', \OC\Files\Filesystem::getMimeType($path));
if (isset($_GET['path'])) {
$getPath = $_GET['path'];
} else {
*/
public static function getVersion() {
// hint: We only can count up. So the internal version number of ownCloud 4.5 will be 4.90.0. This is not visible to the user
- return array(4,91,8);
- return array(4, 91, 03);
++ return array(4, 91, 8);
}
/**