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
83d132e2
Commit
83d132e2
authored
Nov 24, 2008
by
Nigel McNie
Browse files
[UPSTREAM] Make the url passed to build_pagination work when it doesn't have a question mark in it.
parent
1fdc6a92
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/web.php
View file @
83d132e2
...
...
@@ -2350,13 +2350,16 @@ function build_pagination_pagelink($class, $url, $offset, $text, $title, $disabl
$return
=
'<span class="pagination'
;
$return
.
=
(
$class
)
?
"
$class
"
:
''
;
$url
=
(
false
===
strpos
(
$url
,
'?'
))
?
$url
.
'?'
:
$url
.
'&'
;
$url
.
=
"
$offsetname
=
$offset
"
;
if
(
$disabled
)
{
$return
.
=
' disabled">'
.
$text
.
'</span>'
;
}
else
{
$return
.
=
'">'
.
'<a href="'
.
$url
.
'
&'
.
$offsetname
.
'='
.
$offset
.
'" title="'
.
$title
.
'">'
.
$text
.
'</a></span>'
;
.
'<a href="'
.
$url
.
'
" title="'
.
$title
.
'">'
.
$text
.
'</a></span>'
;
}
return
$return
;
...
...
htdocs/view/index.php
View file @
83d132e2
...
...
@@ -103,7 +103,7 @@ else {
}
$pagination
=
build_pagination
(
array
(
'url'
=>
get_config
(
'wwwroot'
)
.
'view/
?
'
,
'url'
=>
get_config
(
'wwwroot'
)
.
'view/'
,
'count'
=>
$data
->
count
,
'limit'
=>
$limit
,
'offset'
=>
$offset
,
...
...
Write
Preview
Markdown
is supported
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