mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 04:41:41 +02: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) {
|
_share_link_callback: function(_data) {
|
||||||
if (_data.msg || _data.share_link) window.egw_refresh(_data.msg, this.appname);
|
if (_data.msg || _data.share_link) window.egw_refresh(_data.msg, this.appname);
|
||||||
console.log("_data", _data);
|
|
||||||
|
|
||||||
var copy_link_to_clipboard = null;
|
var copy_link_to_clipboard = null;
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ class Sharing extends \EGroupware\Api\Sharing
|
|||||||
if($success)
|
if($success)
|
||||||
{
|
{
|
||||||
static::setup_entry($share);
|
static::setup_entry($share);
|
||||||
return static::login($share);
|
return static::login($keep_session, $share);
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
@ -59,7 +59,7 @@ class Sharing extends \EGroupware\Api\Sharing
|
|||||||
*/
|
*/
|
||||||
protected function after_login()
|
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)
|
// allow app (gets overwritten by session::create)
|
||||||
$GLOBALS['egw_info']['flags']['currentapp'] = $app;
|
$GLOBALS['egw_info']['flags']['currentapp'] = $app;
|
||||||
|
@ -440,6 +440,15 @@ class Sharing
|
|||||||
return $this->get_ui();
|
return $this->get_ui();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the user interface for this share
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function get_ui()
|
||||||
|
{
|
||||||
|
echo 'Error: missing subclass';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generate a new token
|
* Generate a new token
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user