@@ -30,52 +30,52 @@ |
||
30 | 30 | * @package OCA\Admin_Audit\Actions |
31 | 31 | */ |
32 | 32 | class UserManagement extends Action { |
33 | - /** |
|
34 | - * Log creation of users |
|
35 | - * |
|
36 | - * @param array $params |
|
37 | - */ |
|
38 | - public function create(array $params) { |
|
39 | - $this->log( |
|
40 | - 'User created: "%s"', |
|
41 | - $params, |
|
42 | - [ |
|
43 | - 'uid', |
|
44 | - ] |
|
45 | - ); |
|
46 | - } |
|
33 | + /** |
|
34 | + * Log creation of users |
|
35 | + * |
|
36 | + * @param array $params |
|
37 | + */ |
|
38 | + public function create(array $params) { |
|
39 | + $this->log( |
|
40 | + 'User created: "%s"', |
|
41 | + $params, |
|
42 | + [ |
|
43 | + 'uid', |
|
44 | + ] |
|
45 | + ); |
|
46 | + } |
|
47 | 47 | |
48 | - /** |
|
49 | - * Log deletion of users |
|
50 | - * |
|
51 | - * @param array $params |
|
52 | - */ |
|
53 | - public function delete(array $params) { |
|
54 | - $this->log( |
|
55 | - 'User deleted: "%s"', |
|
56 | - $params, |
|
57 | - [ |
|
58 | - 'uid', |
|
59 | - ] |
|
60 | - ); |
|
61 | - } |
|
48 | + /** |
|
49 | + * Log deletion of users |
|
50 | + * |
|
51 | + * @param array $params |
|
52 | + */ |
|
53 | + public function delete(array $params) { |
|
54 | + $this->log( |
|
55 | + 'User deleted: "%s"', |
|
56 | + $params, |
|
57 | + [ |
|
58 | + 'uid', |
|
59 | + ] |
|
60 | + ); |
|
61 | + } |
|
62 | 62 | |
63 | - /** |
|
64 | - * Logs changing of the user scope |
|
65 | - * |
|
66 | - * @param IUser $user |
|
67 | - */ |
|
68 | - public function setPassword(IUser $user) { |
|
69 | - if($user->getBackendClassName() === 'Database') { |
|
70 | - $this->log( |
|
71 | - 'Password of user "%s" has been changed', |
|
72 | - [ |
|
73 | - 'user' => $user->getUID(), |
|
74 | - ], |
|
75 | - [ |
|
76 | - 'user', |
|
77 | - ] |
|
78 | - ); |
|
79 | - } |
|
80 | - } |
|
63 | + /** |
|
64 | + * Logs changing of the user scope |
|
65 | + * |
|
66 | + * @param IUser $user |
|
67 | + */ |
|
68 | + public function setPassword(IUser $user) { |
|
69 | + if($user->getBackendClassName() === 'Database') { |
|
70 | + $this->log( |
|
71 | + 'Password of user "%s" has been changed', |
|
72 | + [ |
|
73 | + 'user' => $user->getUID(), |
|
74 | + ], |
|
75 | + [ |
|
76 | + 'user', |
|
77 | + ] |
|
78 | + ); |
|
79 | + } |
|
80 | + } |
|
81 | 81 | } |
@@ -28,110 +28,110 @@ |
||
28 | 28 | * @package OCA\Admin_Audit\Actions |
29 | 29 | */ |
30 | 30 | class Files extends Action { |
31 | - /** |
|
32 | - * Logs file read actions |
|
33 | - * |
|
34 | - * @param array $params |
|
35 | - */ |
|
36 | - public function read(array $params) { |
|
37 | - $this->log( |
|
38 | - 'File accessed: "%s"', |
|
39 | - $params, |
|
40 | - [ |
|
41 | - 'path', |
|
42 | - ] |
|
43 | - ); |
|
44 | - } |
|
31 | + /** |
|
32 | + * Logs file read actions |
|
33 | + * |
|
34 | + * @param array $params |
|
35 | + */ |
|
36 | + public function read(array $params) { |
|
37 | + $this->log( |
|
38 | + 'File accessed: "%s"', |
|
39 | + $params, |
|
40 | + [ |
|
41 | + 'path', |
|
42 | + ] |
|
43 | + ); |
|
44 | + } |
|
45 | 45 | |
46 | - /** |
|
47 | - * Logs rename actions of files |
|
48 | - * |
|
49 | - * @param array $params |
|
50 | - */ |
|
51 | - public function rename(array $params) { |
|
52 | - $this->log( |
|
53 | - 'File renamed: "%s" to "%s"', |
|
54 | - $params, |
|
55 | - [ |
|
56 | - 'oldpath', |
|
57 | - 'newpath', |
|
58 | - ] |
|
59 | - ); |
|
60 | - } |
|
46 | + /** |
|
47 | + * Logs rename actions of files |
|
48 | + * |
|
49 | + * @param array $params |
|
50 | + */ |
|
51 | + public function rename(array $params) { |
|
52 | + $this->log( |
|
53 | + 'File renamed: "%s" to "%s"', |
|
54 | + $params, |
|
55 | + [ |
|
56 | + 'oldpath', |
|
57 | + 'newpath', |
|
58 | + ] |
|
59 | + ); |
|
60 | + } |
|
61 | 61 | |
62 | - /** |
|
63 | - * Logs creation of files |
|
64 | - * |
|
65 | - * @param array $params |
|
66 | - */ |
|
67 | - public function create(array $params) { |
|
68 | - $this->log( |
|
69 | - 'File created: "%s"', |
|
70 | - $params, |
|
71 | - [ |
|
72 | - 'path', |
|
73 | - ] |
|
74 | - ); |
|
75 | - } |
|
62 | + /** |
|
63 | + * Logs creation of files |
|
64 | + * |
|
65 | + * @param array $params |
|
66 | + */ |
|
67 | + public function create(array $params) { |
|
68 | + $this->log( |
|
69 | + 'File created: "%s"', |
|
70 | + $params, |
|
71 | + [ |
|
72 | + 'path', |
|
73 | + ] |
|
74 | + ); |
|
75 | + } |
|
76 | 76 | |
77 | - /** |
|
78 | - * Logs copying of files |
|
79 | - * |
|
80 | - * @param array $params |
|
81 | - */ |
|
82 | - public function copy(array $params) { |
|
83 | - $this->log( |
|
84 | - 'File copied: "%s" to "%s"', |
|
85 | - $params, |
|
86 | - [ |
|
87 | - 'oldpath', |
|
88 | - 'newpath', |
|
89 | - ] |
|
90 | - ); |
|
91 | - } |
|
77 | + /** |
|
78 | + * Logs copying of files |
|
79 | + * |
|
80 | + * @param array $params |
|
81 | + */ |
|
82 | + public function copy(array $params) { |
|
83 | + $this->log( |
|
84 | + 'File copied: "%s" to "%s"', |
|
85 | + $params, |
|
86 | + [ |
|
87 | + 'oldpath', |
|
88 | + 'newpath', |
|
89 | + ] |
|
90 | + ); |
|
91 | + } |
|
92 | 92 | |
93 | - /** |
|
94 | - * Logs writing of files |
|
95 | - * |
|
96 | - * @param array $params |
|
97 | - */ |
|
98 | - public function write(array $params) { |
|
99 | - $this->log( |
|
100 | - 'File written to: "%s"', |
|
101 | - $params, |
|
102 | - [ |
|
103 | - 'path', |
|
104 | - ] |
|
105 | - ); |
|
106 | - } |
|
93 | + /** |
|
94 | + * Logs writing of files |
|
95 | + * |
|
96 | + * @param array $params |
|
97 | + */ |
|
98 | + public function write(array $params) { |
|
99 | + $this->log( |
|
100 | + 'File written to: "%s"', |
|
101 | + $params, |
|
102 | + [ |
|
103 | + 'path', |
|
104 | + ] |
|
105 | + ); |
|
106 | + } |
|
107 | 107 | |
108 | - /** |
|
109 | - * Logs update of files |
|
110 | - * |
|
111 | - * @param array $params |
|
112 | - */ |
|
113 | - public function update(array $params) { |
|
114 | - $this->log( |
|
115 | - 'File updated: "%s"', |
|
116 | - $params, |
|
117 | - [ |
|
118 | - 'path', |
|
119 | - ] |
|
120 | - ); |
|
121 | - } |
|
108 | + /** |
|
109 | + * Logs update of files |
|
110 | + * |
|
111 | + * @param array $params |
|
112 | + */ |
|
113 | + public function update(array $params) { |
|
114 | + $this->log( |
|
115 | + 'File updated: "%s"', |
|
116 | + $params, |
|
117 | + [ |
|
118 | + 'path', |
|
119 | + ] |
|
120 | + ); |
|
121 | + } |
|
122 | 122 | |
123 | - /** |
|
124 | - * Logs deletions of files |
|
125 | - * |
|
126 | - * @param array $params |
|
127 | - */ |
|
128 | - public function delete(array $params) { |
|
129 | - $this->log( |
|
130 | - 'File deleted: "%s"', |
|
131 | - $params, |
|
132 | - [ |
|
133 | - 'path', |
|
134 | - ] |
|
135 | - ); |
|
136 | - } |
|
123 | + /** |
|
124 | + * Logs deletions of files |
|
125 | + * |
|
126 | + * @param array $params |
|
127 | + */ |
|
128 | + public function delete(array $params) { |
|
129 | + $this->log( |
|
130 | + 'File deleted: "%s"', |
|
131 | + $params, |
|
132 | + [ |
|
133 | + 'path', |
|
134 | + ] |
|
135 | + ); |
|
136 | + } |
|
137 | 137 | } |
@@ -27,21 +27,21 @@ |
||
27 | 27 | |
28 | 28 | class Versions extends Action { |
29 | 29 | |
30 | - public function rollback($params) { |
|
31 | - $this->log('Version "%s" of "%s" was restored.', |
|
32 | - [ |
|
33 | - 'version' => $params['revision'], |
|
34 | - 'path' => $params['path'] |
|
35 | - ], |
|
36 | - ['version', 'path'] |
|
37 | - ); |
|
38 | - } |
|
30 | + public function rollback($params) { |
|
31 | + $this->log('Version "%s" of "%s" was restored.', |
|
32 | + [ |
|
33 | + 'version' => $params['revision'], |
|
34 | + 'path' => $params['path'] |
|
35 | + ], |
|
36 | + ['version', 'path'] |
|
37 | + ); |
|
38 | + } |
|
39 | 39 | |
40 | - public function delete($params) { |
|
41 | - $this->log('Version "%s" was deleted.', |
|
42 | - ['path' => $params['path']], |
|
43 | - ['path'] |
|
44 | - ); |
|
45 | - } |
|
40 | + public function delete($params) { |
|
41 | + $this->log('Version "%s" was deleted.', |
|
42 | + ['path' => $params['path']], |
|
43 | + ['path'] |
|
44 | + ); |
|
45 | + } |
|
46 | 46 | |
47 | 47 | } |
@@ -29,163 +29,163 @@ |
||
29 | 29 | * @package OCA\Admin_Audit\Actions |
30 | 30 | */ |
31 | 31 | class Sharing extends Action { |
32 | - /** |
|
33 | - * Logs sharing of data |
|
34 | - * |
|
35 | - * @param array $params |
|
36 | - */ |
|
37 | - public function shared(array $params) { |
|
38 | - if($params['shareType'] === Share::SHARE_TYPE_LINK) { |
|
39 | - $this->log( |
|
40 | - 'The %s "%s" with ID "%s" has been shared via link with permissions "%s" (Share ID: %s)', |
|
41 | - $params, |
|
42 | - [ |
|
43 | - 'itemType', |
|
44 | - 'itemTarget', |
|
45 | - 'itemSource', |
|
46 | - 'permissions', |
|
47 | - 'id', |
|
48 | - ] |
|
49 | - ); |
|
50 | - } elseif($params['shareType'] === Share::SHARE_TYPE_USER) { |
|
51 | - $this->log( |
|
52 | - 'The %s "%s" with ID "%s" has been shared to the user "%s" with permissions "%s" (Share ID: %s)', |
|
53 | - $params, |
|
54 | - [ |
|
55 | - 'itemType', |
|
56 | - 'itemTarget', |
|
57 | - 'itemSource', |
|
58 | - 'shareWith', |
|
59 | - 'permissions', |
|
60 | - 'id', |
|
61 | - ] |
|
62 | - ); |
|
63 | - } elseif($params['shareType'] === Share::SHARE_TYPE_GROUP) { |
|
64 | - $this->log( |
|
65 | - 'The %s "%s" with ID "%s" has been shared to the group "%s" with permissions "%s" (Share ID: %s)', |
|
66 | - $params, |
|
67 | - [ |
|
68 | - 'itemType', |
|
69 | - 'itemTarget', |
|
70 | - 'itemSource', |
|
71 | - 'shareWith', |
|
72 | - 'permissions', |
|
73 | - 'id', |
|
74 | - ] |
|
75 | - ); |
|
76 | - } |
|
77 | - } |
|
32 | + /** |
|
33 | + * Logs sharing of data |
|
34 | + * |
|
35 | + * @param array $params |
|
36 | + */ |
|
37 | + public function shared(array $params) { |
|
38 | + if($params['shareType'] === Share::SHARE_TYPE_LINK) { |
|
39 | + $this->log( |
|
40 | + 'The %s "%s" with ID "%s" has been shared via link with permissions "%s" (Share ID: %s)', |
|
41 | + $params, |
|
42 | + [ |
|
43 | + 'itemType', |
|
44 | + 'itemTarget', |
|
45 | + 'itemSource', |
|
46 | + 'permissions', |
|
47 | + 'id', |
|
48 | + ] |
|
49 | + ); |
|
50 | + } elseif($params['shareType'] === Share::SHARE_TYPE_USER) { |
|
51 | + $this->log( |
|
52 | + 'The %s "%s" with ID "%s" has been shared to the user "%s" with permissions "%s" (Share ID: %s)', |
|
53 | + $params, |
|
54 | + [ |
|
55 | + 'itemType', |
|
56 | + 'itemTarget', |
|
57 | + 'itemSource', |
|
58 | + 'shareWith', |
|
59 | + 'permissions', |
|
60 | + 'id', |
|
61 | + ] |
|
62 | + ); |
|
63 | + } elseif($params['shareType'] === Share::SHARE_TYPE_GROUP) { |
|
64 | + $this->log( |
|
65 | + 'The %s "%s" with ID "%s" has been shared to the group "%s" with permissions "%s" (Share ID: %s)', |
|
66 | + $params, |
|
67 | + [ |
|
68 | + 'itemType', |
|
69 | + 'itemTarget', |
|
70 | + 'itemSource', |
|
71 | + 'shareWith', |
|
72 | + 'permissions', |
|
73 | + 'id', |
|
74 | + ] |
|
75 | + ); |
|
76 | + } |
|
77 | + } |
|
78 | 78 | |
79 | - /** |
|
80 | - * Logs unsharing of data |
|
81 | - * |
|
82 | - * @param array $params |
|
83 | - */ |
|
84 | - public function unshare(array $params) { |
|
85 | - if($params['shareType'] === Share::SHARE_TYPE_LINK) { |
|
86 | - $this->log( |
|
87 | - 'The %s "%s" with ID "%s" has been unshared (Share ID: %s)', |
|
88 | - $params, |
|
89 | - [ |
|
90 | - 'itemType', |
|
91 | - 'fileTarget', |
|
92 | - 'itemSource', |
|
93 | - 'id', |
|
94 | - ] |
|
95 | - ); |
|
96 | - } elseif($params['shareType'] === Share::SHARE_TYPE_USER) { |
|
97 | - $this->log( |
|
98 | - 'The %s "%s" with ID "%s" has been unshared from the user "%s" (Share ID: %s)', |
|
99 | - $params, |
|
100 | - [ |
|
101 | - 'itemType', |
|
102 | - 'fileTarget', |
|
103 | - 'itemSource', |
|
104 | - 'shareWith', |
|
105 | - 'id', |
|
106 | - ] |
|
107 | - ); |
|
108 | - } elseif($params['shareType'] === Share::SHARE_TYPE_GROUP) { |
|
109 | - $this->log( |
|
110 | - 'The %s "%s" with ID "%s" has been unshared from the group "%s" (Share ID: %s)', |
|
111 | - $params, |
|
112 | - [ |
|
113 | - 'itemType', |
|
114 | - 'fileTarget', |
|
115 | - 'itemSource', |
|
116 | - 'shareWith', |
|
117 | - 'id', |
|
118 | - ] |
|
119 | - ); |
|
120 | - } |
|
121 | - } |
|
79 | + /** |
|
80 | + * Logs unsharing of data |
|
81 | + * |
|
82 | + * @param array $params |
|
83 | + */ |
|
84 | + public function unshare(array $params) { |
|
85 | + if($params['shareType'] === Share::SHARE_TYPE_LINK) { |
|
86 | + $this->log( |
|
87 | + 'The %s "%s" with ID "%s" has been unshared (Share ID: %s)', |
|
88 | + $params, |
|
89 | + [ |
|
90 | + 'itemType', |
|
91 | + 'fileTarget', |
|
92 | + 'itemSource', |
|
93 | + 'id', |
|
94 | + ] |
|
95 | + ); |
|
96 | + } elseif($params['shareType'] === Share::SHARE_TYPE_USER) { |
|
97 | + $this->log( |
|
98 | + 'The %s "%s" with ID "%s" has been unshared from the user "%s" (Share ID: %s)', |
|
99 | + $params, |
|
100 | + [ |
|
101 | + 'itemType', |
|
102 | + 'fileTarget', |
|
103 | + 'itemSource', |
|
104 | + 'shareWith', |
|
105 | + 'id', |
|
106 | + ] |
|
107 | + ); |
|
108 | + } elseif($params['shareType'] === Share::SHARE_TYPE_GROUP) { |
|
109 | + $this->log( |
|
110 | + 'The %s "%s" with ID "%s" has been unshared from the group "%s" (Share ID: %s)', |
|
111 | + $params, |
|
112 | + [ |
|
113 | + 'itemType', |
|
114 | + 'fileTarget', |
|
115 | + 'itemSource', |
|
116 | + 'shareWith', |
|
117 | + 'id', |
|
118 | + ] |
|
119 | + ); |
|
120 | + } |
|
121 | + } |
|
122 | 122 | |
123 | - /** |
|
124 | - * Logs the updating of permission changes for shares |
|
125 | - * |
|
126 | - * @param array $params |
|
127 | - */ |
|
128 | - public function updatePermissions(array $params) { |
|
129 | - $this->log( |
|
130 | - 'The permissions of the shared %s "%s" with ID "%s" have been changed to "%s"', |
|
131 | - $params, |
|
132 | - [ |
|
133 | - 'itemType', |
|
134 | - 'path', |
|
135 | - 'itemSource', |
|
136 | - 'permissions', |
|
137 | - ] |
|
138 | - ); |
|
139 | - } |
|
123 | + /** |
|
124 | + * Logs the updating of permission changes for shares |
|
125 | + * |
|
126 | + * @param array $params |
|
127 | + */ |
|
128 | + public function updatePermissions(array $params) { |
|
129 | + $this->log( |
|
130 | + 'The permissions of the shared %s "%s" with ID "%s" have been changed to "%s"', |
|
131 | + $params, |
|
132 | + [ |
|
133 | + 'itemType', |
|
134 | + 'path', |
|
135 | + 'itemSource', |
|
136 | + 'permissions', |
|
137 | + ] |
|
138 | + ); |
|
139 | + } |
|
140 | 140 | |
141 | - /** |
|
142 | - * Logs the password changes for a share |
|
143 | - * |
|
144 | - * @param array $params |
|
145 | - */ |
|
146 | - public function updatePassword(array $params) { |
|
147 | - $this->log( |
|
148 | - 'The password of the publicly shared %s "%s" with ID "%s" has been changed', |
|
149 | - $params, |
|
150 | - [ |
|
151 | - 'itemType', |
|
152 | - 'token', |
|
153 | - 'itemSource', |
|
154 | - ] |
|
155 | - ); |
|
156 | - } |
|
141 | + /** |
|
142 | + * Logs the password changes for a share |
|
143 | + * |
|
144 | + * @param array $params |
|
145 | + */ |
|
146 | + public function updatePassword(array $params) { |
|
147 | + $this->log( |
|
148 | + 'The password of the publicly shared %s "%s" with ID "%s" has been changed', |
|
149 | + $params, |
|
150 | + [ |
|
151 | + 'itemType', |
|
152 | + 'token', |
|
153 | + 'itemSource', |
|
154 | + ] |
|
155 | + ); |
|
156 | + } |
|
157 | 157 | |
158 | - /** |
|
159 | - * Logs the expiration date changes for a share |
|
160 | - * |
|
161 | - * @param array $params |
|
162 | - */ |
|
163 | - public function updateExpirationDate(array $params) { |
|
164 | - $this->log( |
|
165 | - 'The expiration date of the publicly shared %s with ID "%s" has been changed to "%s"', |
|
166 | - $params, |
|
167 | - [ |
|
168 | - 'itemType', |
|
169 | - 'itemSource', |
|
170 | - 'date', |
|
171 | - ] |
|
172 | - ); |
|
173 | - } |
|
158 | + /** |
|
159 | + * Logs the expiration date changes for a share |
|
160 | + * |
|
161 | + * @param array $params |
|
162 | + */ |
|
163 | + public function updateExpirationDate(array $params) { |
|
164 | + $this->log( |
|
165 | + 'The expiration date of the publicly shared %s with ID "%s" has been changed to "%s"', |
|
166 | + $params, |
|
167 | + [ |
|
168 | + 'itemType', |
|
169 | + 'itemSource', |
|
170 | + 'date', |
|
171 | + ] |
|
172 | + ); |
|
173 | + } |
|
174 | 174 | |
175 | - /** |
|
176 | - * Logs access of shared files |
|
177 | - * |
|
178 | - * @param array $params |
|
179 | - */ |
|
180 | - public function shareAccessed(array $params) { |
|
181 | - $this->log( |
|
182 | - 'The shared %s with the token "%s" by "%s" has been accessed.', |
|
183 | - $params, |
|
184 | - [ |
|
185 | - 'itemType', |
|
186 | - 'token', |
|
187 | - 'uidOwner', |
|
188 | - ] |
|
189 | - ); |
|
190 | - } |
|
175 | + /** |
|
176 | + * Logs access of shared files |
|
177 | + * |
|
178 | + * @param array $params |
|
179 | + */ |
|
180 | + public function shareAccessed(array $params) { |
|
181 | + $this->log( |
|
182 | + 'The shared %s with the token "%s" by "%s" has been accessed.', |
|
183 | + $params, |
|
184 | + [ |
|
185 | + 'itemType', |
|
186 | + 'token', |
|
187 | + 'uidOwner', |
|
188 | + ] |
|
189 | + ); |
|
190 | + } |
|
191 | 191 | } |
@@ -1,6 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - |
|
4 | 3 | * |
5 | 4 | * @author Bjoern Schiessle <[email protected]> |
6 | 5 | * @author Lukas Reschke <[email protected]> |
@@ -35,22 +35,22 @@ |
||
35 | 35 | $versions = OCA\Files_Versions\Storage::getVersions($uid, $filename, $source); |
36 | 36 | if( $versions ) { |
37 | 37 | |
38 | - $endReached = false; |
|
39 | - if (count($versions) <= $start+$count) { |
|
40 | - $endReached = true; |
|
41 | - } |
|
38 | + $endReached = false; |
|
39 | + if (count($versions) <= $start+$count) { |
|
40 | + $endReached = true; |
|
41 | + } |
|
42 | 42 | |
43 | - $versions = array_slice($versions, $start, $count); |
|
43 | + $versions = array_slice($versions, $start, $count); |
|
44 | 44 | |
45 | - // remove owner path from request to not disclose it to the recipient |
|
46 | - foreach ($versions as $version) { |
|
47 | - unset($version['path']); |
|
48 | - } |
|
45 | + // remove owner path from request to not disclose it to the recipient |
|
46 | + foreach ($versions as $version) { |
|
47 | + unset($version['path']); |
|
48 | + } |
|
49 | 49 | |
50 | - \OCP\JSON::success(array('data' => array('versions' => $versions, 'endReached' => $endReached))); |
|
50 | + \OCP\JSON::success(array('data' => array('versions' => $versions, 'endReached' => $endReached))); |
|
51 | 51 | |
52 | 52 | } else { |
53 | 53 | |
54 | - \OCP\JSON::success(array('data' => array('versions' => [], 'endReached' => true))); |
|
54 | + \OCP\JSON::success(array('data' => array('versions' => [], 'endReached' => true))); |
|
55 | 55 | |
56 | 56 | } |
@@ -34,8 +34,8 @@ |
||
34 | 34 | $revision=(int)$_GET['revision']; |
35 | 35 | |
36 | 36 | if(OCA\Files_Versions\Storage::rollback( $file, $revision )) { |
37 | - OCP\JSON::success(array("data" => array( "revision" => $revision, "file" => $file ))); |
|
37 | + OCP\JSON::success(array("data" => array( "revision" => $revision, "file" => $file ))); |
|
38 | 38 | }else{ |
39 | - $l = \OC::$server->getL10N('files_versions'); |
|
40 | - OCP\JSON::error(array("data" => array( "message" => $l->t("Could not revert: %s", array($file) )))); |
|
39 | + $l = \OC::$server->getL10N('files_versions'); |
|
40 | + OCP\JSON::error(array("data" => array( "message" => $l->t("Could not revert: %s", array($file) )))); |
|
41 | 41 | } |
@@ -2,10 +2,10 @@ |
||
2 | 2 | <div id="nojavascript"> |
3 | 3 | <div> |
4 | 4 | <?php print_unescaped(str_replace( |
5 | - ['{linkstart}', '{linkend}'], |
|
6 | - ['<a href="http://enable-javascript.com/" target="_blank" rel="noreferrer">', '</a>'], |
|
7 | - $l->t('This application requires JavaScript for correct operation. Please {linkstart}enable JavaScript{linkend} and reload the page.') |
|
8 | - )); ?> |
|
5 | + ['{linkstart}', '{linkend}'], |
|
6 | + ['<a href="http://enable-javascript.com/" target="_blank" rel="noreferrer">', '</a>'], |
|
7 | + $l->t('This application requires JavaScript for correct operation. Please {linkstart}enable JavaScript{linkend} and reload the page.') |
|
8 | + )); ?> |
|
9 | 9 | </div> |
10 | 10 | </div> |
11 | 11 | </noscript> |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | print_unescaped($l->t("Hey there,\n\njust letting you know that %s shared %s with you.\nView it: %s\n\n", array($_['user_displayname'], $_['filename'], $_['link']))); |
3 | 3 | if ( isset($_['expiration']) ) { |
4 | - print_unescaped($l->t("The share will expire on %s.", array($_['expiration']))); |
|
5 | - print_unescaped("\n\n"); |
|
4 | + print_unescaped($l->t("The share will expire on %s.", array($_['expiration']))); |
|
5 | + print_unescaped("\n\n"); |
|
6 | 6 | } |
7 | 7 | // TRANSLATORS term at the end of a mail |
8 | 8 | p($l->t("Cheers!")); |