Skip to content

Commit 6df0866

Browse files
committed
OC8 Update 2
1 parent 0165955 commit 6df0866

File tree

4 files changed

+1
-55
lines changed

4 files changed

+1
-55
lines changed

appinfo/routes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@
2727
array('name' => 'shorten_api#preflighted_cors', 'url' => '/api/v0.2/{path}', 'verb' => 'OPTIONS', 'requirements' => array('path' => '.+')),
2828
)));
2929

30-
$this->create('shorten_code', '/code.php')->action( function($params){ require '/var/www/owncloud/apps/shorten/lib/code.php'; } );
30+
$this->create('shorten_code', '/code.php')->action( function($params){ require 'shorten/lib/code.php'; } );

appinfo/version

Lines changed: 0 additions & 1 deletion
This file was deleted.

code.php

Lines changed: 0 additions & 51 deletions
This file was deleted.

js/script.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ function replaceUrl() {
4949
}
5050

5151
function makeUrl(curUrl, partUrl) {
52-
//alert(OC.linkTo("shorten","ajax/makeurl.php"));
53-
//$.post(OC.linkTo("shorten","ajax/makeurl.php"), { curUrl: curUrl }, function (data) {
5452
$.post("/owncloud/index.php/apps/shorten/makeurl", { curUrl: curUrl }, function (data) {
5553
$('#linkText').val(data);
5654
});

0 commit comments

Comments
 (0)