repo.or.cz
/
moodle-pu.git
/
search
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
first
·
prev
·
next
calendar/lib: calendar_set_filters() use pre-fetched context and course recs
2007-09-19
martinlangh
o
f
f
calen
d
ar/
l
ib
:
ca
l
endar_set
_
filters
(
) use pre-f
e
tche
d
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinlanghoff
cours
e
/index: remove ca
l
l
t
o re
b
uild_contex
t
_rel
(
)
commit
|
commitdiff
|
tree
2007-09-19
martinl
a
ngh
o
ff
a
c
c
essl
i
b upgr
a
de
:
remove
stray build_context_rel(
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinlan
g
hoff
webl
i
b
:
b
uild
_
nav
i
gation() try to avoid po
i
ntless
capchecks
commit
|
commitdiff
|
tree
2007-09-19
martinla
n
gho
f
f
c
o
urse/lib:
p
r
i
nt_
c
ourse() fix bug w
h
en $course->mana
g
e
rs
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinlanghoff
acc
e
ss
l
ib: has_cap
_
fad() respect
l
oc
a
l
-
c
ontext-wins
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
m
a
rt
i
n
l
a
ngho
f
f
cours
e
/lib: print_my_m
o
odle()
-
a
s
k g
e
t
_
my_course
s
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
ma
r
tinlanghoff
datalib: get_my_courses() ho
n
o
ur $fields array
commit
|
commitdiff
|
tree
2007-09-19
martinlanghoff
acce
s
slib:
get_my_courses() fix when
called
wh
e
n empty
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinlanghoff
inde
x
.
php:
d
rop unus
e
d $
h
idesitecourse parameter whe
n
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
m
a
rtinlanghoff
course/
l
i
b
:
print_
c
ou
r
ses() drop $hi
d
esitecourse parameter
commit
|
commitdiff
|
tree
2007-09-19
martinlan
g
hoff
R
evert "course/lib: print_co
u
rses
(
) - no need to worry
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinlanghoff
accesslib
-
Ens
u
re
n
ewly-created categories hav
e
a
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinlanghoff
Revert "text
l
i
b
: Don't requi
r
e_onc
e
() class
.
t3
l
ib_div
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinlanghoff
a
c
cesslib: get_user_access_
b
ycontext() re
m
ov
e
2 unus
e
d
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
mar
t
inlangho
f
f
cours
e
/
l
ib: print_courses() -
no need to worry a
b
out
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinlang
h
off
datalib:
g
et_courses_wmana
g
ers(
)
e
xclude the sitecourse
commit
|
commitdiff
|
tree
2007-09-19
martinl
a
nghoff
cour
s
e/inde
x
: B
r
ing back Pe
t
r's MDL-9647 s
i
mplify dealing
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
m
a
rt
i
nla
n
ghoff
a
c
cessl
i
b
: is_sit
e
admin() bugfixes
commit
|
commitdiff
|
tree
2007-09-19
mart
i
nlangh
o
f
f
a
ccesslib: fix SQL
CAST()s to work on MySQ
L
and P
o
s
tgr
e
SQL
commit
|
commitdiff
|
tree
2007-09-19
martinla
n
ghoff
accessl
i
b
: remove has_capability_including_child_contexts()
commit
|
commitdiff
|
tree
2007-09-19
m
artinla
n
ghoff
mo
o
dlel
i
b: ise
d
iting
(
)
u
ses $P
A
GE->
u
ser_allowed_e
d
iting
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
mart
i
nlang
h
off
index: use
$PAGE->edit_course_allowed() in
s
t
ead of
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinlan
g
h
o
ff
blocks/a
d
min_tree
:
applicable_format
s
() is called
as
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
m
a
r
t
inlanghoff
Rev
e
rt "datalib:
I
ntro
d
ucing
s
ql_
i
ntarray_
t
o_in()"
commit
|
commitdiff
|
tree
2007-09-19
martinlangho
f
f
a
c
cessli
b
: replace join() an
d
sql_intarray_to_in()
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinlang
h
off
textlib: Do
n
't
r
e
q
uire_onc
e
() class
.
t3lib_div
.
p
h
p
whic
h
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinlanghof
f
moodlelib: moodle_r
e
ques
t
_sh
u
tdown() prints inclu
d
ed
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinl
a
n
g
hoff
blocks/admin_tree: Show the block if
s
ome
a
dmin privs
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
marti
n
langhoff
acce
s
slib upgrad
e
:
admin/upgrades
e
tti
n
gs
m
ay
n
e
e
d
t
o
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinlanghoff
acces
s
lib 1
.
9 upgrad
e
: home
p
age chec
k
to see
i
f we
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
marti
n
langhoff
a
c
c
e
s
sli
b
rework: U
p
grad
e
block to p
o
p
ulate context
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinlanghoff
accessl
i
b: Int
r
oduc
i
ng
i
s_siteadmin() to reliably
c
h
eck
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinl
a
n
ghoff
admin/in
d
e
x
:
Pop
u
late
the context path JIT for
t
h
e
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martin
l
anghoff
accesslib: get_user_c
o
u
r
s
e
s_bycap() fix
to deal with
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinlang
h
off
a
ccesslib: re
m
o
v
e references to deprecated co
n
text_rel
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
m
a
rtin
l
anghoff
a
d
m
in/cron: move accessli
b
stuff to occasional clean
u
ps
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
ma
r
tinlan
g
ho
f
f
a
ccesslib: build_cont
e
xt
_
path(
)
is now much muc
h
ch
e
a
p
e
r
commit
|
commitdiff
|
tree
2007-09-19
marti
n
langh
o
ff
backup/resto
r
e_fo
r
m
.
h
t
ml:
t
iny
X
HTML complia
n
ce fix
commit
|
commitdiff
|
tree
2007-09-19
mar
t
i
n
langhoff
datalib: get_
c
ategories() - remove Po
s
tgreSQ
L
-ism
commit
|
commitdiff
|
tree
2007-09-19
mar
t
inlanghoff
ac
c
e
s
s
lib
:
Use
s
ql_compat() to remove unp
o
r
t
able PostgreSQL
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinlangho
f
f
accesslib: get_assign
a
ble_roles()
r
eworked to be c
o
nstant
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
m
a
rtinlanghoff
course/inde
x
: minor
c
ontext-related fi
x
es
commit
|
commitdiff
|
tree
2007-09-19
martinlan
g
hoff
datal
i
b
:
get_c
a
tegori
e
s() return
s
c
o
n
t
e
xt, supports
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinlanghoff
datalib:
f
ix_course_sor
t
order() - minor optimisation
commit
|
commitdiff
|
tree
2007-09-19
martinlanghoff
course
/
li
b
:
print_c
o
urses() and
p
rint_course() rework
commit
|
commitdiff
|
tree
2007-09-19
martin
l
a
nghoff
datalib: Introduc
i
ng get_cou
r
ses_wm
a
nager
s
() for pri
n
t_co
u
rs
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinlangh
o
ff
course/lib: print_course() bugfix when
$
r
users is em
p
ty
commit
|
commitdiff
|
tree
2007-09-19
m
a
rtinlan
g
hoff
accesslib:
g
e
t
_paren
t
_
c
o
ntexts() bugfix
commit
|
commitdiff
|
tree
2007-09-19
martin
l
anghoff
acces
s
l
ib: has_
c
apability() now
load
s
s
u
b-cour
s
e
acc
e
ssdata
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
m
a
r
t
inl
a
nghoff
moodlelib: require_
l
ogin()
rework
commit
|
commitdiff
|
tree
2007-09-19
m
ar
t
inla
n
g
hoff
accesslib: Fix
d
i
rty paths checks on PHPv4
commit
|
commitdiff
|
tree
2007-09-19
mart
i
n
langhof
f
accesslib
:
phpdo
c
update get_child_context
s
()
commit
|
commitdiff
|
tree
2007-09-19
martinlanghoff
accesslib: rm get_ro
l
e_context_capability() and update
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinlanghoff
ac
c
esslib: r
e
move
r
o
le_a
d
d_las
t
acce
s
s_entries(),role_remove_
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinlanghoff
accesslib: require_c
a
pabi
l
ity() phpdo
c
n
otes
commit
|
commitdiff
|
tree
2007-09-19
ma
r
tinla
n
ghoff
accesslib: get
_
parent_cats()
g
oes away too
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinlanghoff
accesslib:
r
emove
get_role_caps() merge
_
role_caps()
commit
|
commitdiff
|
tree
2007-09-19
marti
n
l
a
ngho
f
f
accesslib: remove valid
a
te
_
c
ontext()
commit
|
commitdiff
|
tree
2007-09-19
martinlanghoff
a
c
ces
s
lib: g
e
t_cont
e
x
t
_instan
c
e() - igno
r
e
clearcac
h
e
commit
|
commitdiff
|
tree
2007-09-19
ma
r
t
i
n
la
n
g
h
off
accesslib: get_p
a
rent_
c
on
t
exts() rework
e
d to use context
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinlangh
o
ff
accesslib: rem
o
v
e
insert_context_rel(
)
, build_c
o
ntex
t
_rel
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
mar
t
inlangh
o
f
f
accesslib:
ma
r
k_c
o
n
t
e
xt_di
r
ty() - fix race condition
commit
|
commitdiff
|
tree
2007-09-19
martin
l
anghoff
acce
s
s
lib: mark_c
o
nt
e
xt_dirty() do
n
't mark i
t
the
r
e
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
m
ar
t
inlanghoff
datalib: ad
d
_to_l
o
g() fix a bu
g
and bet
t
er error handli
n
g
commit
|
commitdiff
|
tree
2007-09-19
m
artinlanghoff
blocks/a
d
min_tree: exit early for non-admins
commit
|
commitdiff
|
tree
2007-09-19
martinlanghoff
acces
s
li
b
:
get_user_access_si
t
ewide() fix invali
d
SQL
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martin
l
angh
o
ff
datalib: get_ad
m
i
n()
- cach
e
in
a s
t
atic var
commit
|
commitdiff
|
tree
2007-09-19
ma
r
tinlanghoff
user
/
view: show
u
se
r
c
ourse
s
that are hidden, with
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
mar
t
inlanghoff
datalib: get_my_courses(
)
now ret
u
rns invisible
courses
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinlanghoff
accesslib: has_
c
a
p
a
bility()
-
fix
w
a
rnings about FULL
M
E
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
mart
i
nlanghoff
mod/chat:
c
h
a
t_update
_
ch
a
t_
t
imes()
s
marter
commit
|
commitdiff
|
tree
2007-09-19
martinlanghoff
mo
d
/c
h
at: reduce number
of queri
e
s in cron
.
commit
|
commitdiff
|
tree
2007-09-19
martinlanghoff
accessli
b
:
has_
c
apabili
t
y() now su
p
por
t
s
f
ake
$USER
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
mart
i
nlanghoff
user/ind
e
x: make
u
s
e of the sma
r
ter print_user_picture()
-
commit
|
commitdiff
|
tree
2007-09-19
mar
t
inlanghoff
cour
s
e
/p
a
rticip
a
nts: fix sort
o
rder whe
n
l
ast access
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
m
artinlangh
o
ff
weblib:
print_
u
ser()/p
r
int_user_
p
ictu
r
e() optimisations
commit
|
commitdiff
|
tree
2007-09-19
ma
r
tinlanghoff
moodlelib: require_login() - rework course/categor
y
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinlanghoff
datalib:course_p
a
rent
_
visible() r
e
work,
r
e
m
o
ve c
a
t
e
g
o
ry_pare
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinla
n
ghoff
datalib: g
e
t_my_courses() - add
c
ourse visibilit
y
checks
commit
|
commitdiff
|
tree
2007-09-19
martinlanghoff
ac
c
esslib:
g
et_u
s
er_
c
ourses_bycap() also retu
r
ns categoryp
a
th
commit
|
commitdiff
|
tree
2007-09-19
ma
r
tin
l
anghoff
accesslib: has_ca
p
_fad() -
m
e
rg
e
switchrole with defaultuse
r
r
ole
commit
|
commitdiff
|
tree
2007-09-19
m
artinlanghoff
a
cce
s
slib: rem
o
ve unused static var
commit
|
commitdiff
|
tree
2007-09-19
martinlangh
o
ff
acc
e
sslib: r
e
move deprecated load_defaultuser_ro
l
e
()
commit
|
commitdiff
|
tree
2007-09-19
m
a
rtinlanghoff
moodl
e
l
ib
:
rem
o
ve_course_c
o
ntents(
)
do
e
s n
o
t need to
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martin
l
anghoff
accesslib: delete_co
n
t
e
xt() now appro
p
riate
l
y m
a
r
k
s
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinlanghoff
Interactive enrolment/un
e
nro
l
men
t
s:
m
a
ke s
u
re we unset
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
m
artinlanghoff
acc
e
ssl
i
b: load_all_capabi
l
iti
e
s() mu
s
t clear US
E
R
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
ma
r
tinla
n
g
h
o
ff
ac
c
essli
b
: drop r
d
ef ma
n
g
l
ing p
a
rt two
commit
|
commitdiff
|
tree
2007-09-19
martinla
n
gh
o
ff
m
oodlelib: r
e
q
uire_l
o
g
i
n() - ass
i
g
n
t
empguest role
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinl
a
ng
h
of
f
accesslib: intro l
o
a
d_temp_rol
e
()
for tempo
r
ary guest
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
mar
t
inlanghoff
accesslib: dr
o
p rd
e
f ma
n
glin
g
for d
e
f
a
ul
t
role - check
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
mar
t
in
l
anghoff
acc
e
sslib:loa
d
_all
_
capa
b
ilities()
- fix guest u
s
er
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinlanghoff
accessli
b
/moo
d
l
elib: check $USER->access[rs
w
] for roleswitches
commit
|
commitdiff
|
tree
2007-09-19
m
a
rti
n
l
a
nghoff
course/unenrol: chec
k
$USER-
>
acces
s
[rs
w
] for ro
l
e switches
commit
|
commitdiff
|
tree
2007-09-19
martinlanghoff
ac
c
es
s
lib: Docume
n
t ac
c
essda
t
a, pu
b
lic api, stale accessdata
commit
|
commitdiff
|
tree
2007-09-19
marti
n
l
a
ngh
o
ff
accesslib: r
e
name "se
s
s
" and
"
acc
e
s
sinfo" to accessdat
a
commit
|
commitdiff
|
tree
2007-09-19
mar
t
inlanghoff
acc
e
sslib:
r
equire
_
ca
p
ability(
)
revamp
to c
h
eck for
.
.
.
commit
|
commitdiff
|
tree
2007-09-19
martinlanghoff
accesslib:co
n
tex
t
_moved() remove debugging msgs
commit
|
commitdiff
|
tree
2007-09-19
m
a
rtinlangho
f
f
course/ind
e
x
:
Move categories
a
roun
d
usi
n
g
m
o
ve_category()
commit
|
commitdiff
|
tree
next