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:
nathangray 2018-06-06 09:54:49 -06:00
parent 0284248eaa
commit 0582f2347f
3 changed files with 11 additions and 3 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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
*