Skip to content
GitLab
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
76c35fdf
Commit
76c35fdf
authored
Nov 10, 2014
by
Robert Lyon
Committed by
Gerrit Code Review
Nov 10, 2014
Browse files
Merge "save the page-orderby per user"
parents
59d9bd88
97929260
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/user.php
View file @
76c35fdf
...
...
@@ -213,6 +213,7 @@ function expected_account_preferences() {
'devicedetection'
=>
1
,
'licensedefault'
=>
''
,
'viewsperpage'
=>
20
,
'orderpagesby'
=>
'atoz'
,
);
}
...
...
htdocs/lib/view.php
View file @
76c35fdf
...
...
@@ -3622,7 +3622,12 @@ class View {
$limit
=
$userlimit
;
}
$offset
=
param_integer
(
'offset'
,
0
);
$orderby
=
param_variable
(
'orderby'
,
null
);
// load default page order from user settings as default and overwrite, if changed
$usersettingorderby
=
get_account_preference
(
$USER
->
get
(
'id'
),
'orderpagesby'
);
$orderby
=
param_variable
(
'orderby'
,
$usersettingorderby
);
if
(
$usersettingorderby
!==
$orderby
)
{
set_account_preference
(
$USER
->
get
(
'id'
),
'orderpagesby'
,
$orderby
);
}
$query
=
param_variable
(
'query'
,
null
);
$tag
=
param_variable
(
'tag'
,
null
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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