mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-29 19:33:54 +01:00
Fix a few issues from Scrutinizer
- Remove debug code - Remove some unused variables - Add get_ui() to base class that gives error message (should always be a subclass)
This commit is contained in:
parent
0284248eaa
commit
0582f2347f
@ -1915,7 +1915,6 @@ var AppJS = (function(){ "use strict"; return Class.extend(
|
||||
*/
|
||||
_share_link_callback: function(_data) {
|
||||
if (_data.msg || _data.share_link) window.egw_refresh(_data.msg, this.appname);
|
||||
console.log("_data", _data);
|
||||
|
||||
var copy_link_to_clipboard = null;
|
||||
|
||||
|
@ -43,7 +43,7 @@ class Sharing extends \EGroupware\Api\Sharing
|
||||
if($success)
|
||||
{
|
||||
static::setup_entry($share);
|
||||
return static::login($share);
|
||||
return static::login($keep_session, $share);
|
||||
}
|
||||
return '';
|
||||
}
|
||||
@ -59,7 +59,7 @@ class Sharing extends \EGroupware\Api\Sharing
|
||||
*/
|
||||
protected function after_login()
|
||||
{
|
||||
list($app, $id) = explode('::', $this->share['share_path']);
|
||||
list($app) = explode('::', $this->share['share_path']);
|
||||
|
||||
// allow app (gets overwritten by session::create)
|
||||
$GLOBALS['egw_info']['flags']['currentapp'] = $app;
|
||||
|
@ -440,6 +440,15 @@ class Sharing
|
||||
return $this->get_ui();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the user interface for this share
|
||||
*
|
||||
*/
|
||||
public function get_ui()
|
||||
{
|
||||
echo 'Error: missing subclass';
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate a new token
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user