File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
files/lib/system/user/online/location Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,13 @@ public function cache(UserOnline $user) {}
18
18
19
19
public function get (UserOnline $ user , $ languageVariable = '' ) {
20
20
$ page = PageCache::getInstance ()->getPage ($ user ->objectID );
21
- if ($ page !== null && $ page ->pageID != 0 ) {
22
- return WCF ::getLanguage ()->getDynamicVariable ($ languageVariable , array (
21
+
22
+ if (!$ page || !$ page ->canRead ()) {
23
+ return '' ;
24
+ }
25
+
26
+ return WCF ::getLanguage ()->getDynamicVariable ($ languageVariable , array (
23
27
'page ' => $ page
24
28
));
25
- }
26
- return '' ;
27
29
}
28
30
}
Original file line number Diff line number Diff line change 5
5
<packagedescription ><![CDATA[ CMS for WCF 2.0]]> </packagedescription >
6
6
<isapplication >1</isapplication >
7
7
<version >2.0.0 Beta 3</version >
8
- <date >2014-07-26 </date >
8
+ <date >2014-07-11 </date >
9
9
</packageinformation >
10
10
11
11
<authorinformation >
62
62
<instruction type =" acpTemplate" >acptemplates.tar</instruction >
63
63
<instruction type =" template" >templates.tar</instruction >
64
64
</instructions >
65
- </package >
65
+ </package >
You can’t perform that action at this time.
0 commit comments