Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
b73b6621
Commit
b73b6621
authored
Jul 31, 2007
by
Donal McMullan
Browse files
Remove trailing slash(es) from wwwroot
parent
08b781e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/auth/xmlrpc/lib.php
View file @
b73b6621
...
...
@@ -47,7 +47,7 @@ class AuthXmlrpc extends Auth {
*/
public
function
__construct
(
$id
=
null
)
{
$this
->
has_
instance_
config
=
true
;
$this
->
has_config
=
true
;
$this
->
type
=
'xmlrpc'
;
$this
->
config
[
'wwwroot'
]
=
''
;
...
...
@@ -359,18 +359,10 @@ class PluginAuthXmlrpc extends PluginAuth {
);
public
static
function
has_config
()
{
return
false
;
}
public
static
function
get_config_options
()
{
return
array
();
}
public
static
function
has_instance_config
()
{
return
true
;
}
public
static
function
get_
instance_
config_options
(
$institution
,
$instance
=
0
)
{
public
static
function
get_config_options
(
$institution
,
$instance
=
0
)
{
$peer
=
new
Peer
();
...
...
@@ -515,22 +507,13 @@ class PluginAuthXmlrpc extends PluginAuth {
'help'
=>
true
);
/**
* empty($peer->appname) would ALWAYS return true, because the property doesn't really
* exist. When we try to get $peer->appname, we're actually calling the peer class's
* __get overloader. Unfortunately, the 'empty' function seems to just check for the
* existence of the property - it doesn't call the overloader. Bug or feature?
*/
$tmpappname
=
$peer
->
appname
;
$elements
[
'appname'
]
=
array
(
'type'
=>
'select'
,
'title'
=>
get_string
(
'application'
,
'auth'
),
'collapseifoneoption'
=>
true
,
'multiple'
=>
false
,
'options'
=>
$apparray
,
'defaultvalue'
=>
empty
(
$
tmp
appname
)
?
key
(
$apparray
)
:
$
tmp
appname
,
'defaultvalue'
=>
empty
(
$
peer
->
appname
)
?
key
(
$apparray
)
:
$
peer
->
appname
,
'help'
=>
true
);
...
...
@@ -629,7 +612,7 @@ class PluginAuthXmlrpc extends PluginAuth {
}
}
$peer
->
wwwroot
=
$values
[
'wwwroot'
];
$peer
->
wwwroot
=
preg_replace
(
"|\/+$|"
,
""
,
$values
[
'wwwroot'
]
)
;
$peer
->
name
=
$values
[
'name'
];
$peer
->
deleted
=
$values
[
'deleted'
];
$peer
->
portno
=
$values
[
'portno'
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment