Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1821488
jsinfo.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
734 B
Subscribers
None
jsinfo.php
View Options
<?php
/**
* DokuWiki DAVCal PlugIn - JSINFO component
*/
if
(!
defined
(
'DOKU_INC'
))
die
();
class
action_plugin_davcal_jsinfo
extends
DokuWiki_Action_Plugin
{
function
register
(
Doku_Event_Handler
$controller
)
{
$controller
->
register_hook
(
'DOKUWIKI_STARTED'
,
'AFTER'
,
$this
,
'add_jsinfo_information'
);
}
/**
* Add the language variable to the JSINFO variable
*/
function
add_jsinfo_information
(&
$event
,
$param
)
{
global
$conf
;
global
$JSINFO
;
$lang
=
$conf
[
'lang'
];
if
(
strpos
(
$lang
,
"de"
)
===
0
)
{
$lc
=
'de'
;
}
else
{
$lc
=
'en'
;
}
$JSINFO
[
'plugin'
][
'davcal'
][
'language'
]
=
$lc
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Dec 24, 12:34 AM (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
915084
Default Alt Text
jsinfo.php (734 B)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment