Subversion Repositories oidplus

Rev

Rev 1266 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1266 Rev 1278
Line 40... Line 40...
40
         * @param bool $handled
40
         * @param bool $handled
41
         * @return void
41
         * @return void
42
         * @throws OIDplusException
42
         * @throws OIDplusException
43
         */
43
         */
44
        public function gui(string $id, array &$out, bool &$handled) {
44
        public function gui(string $id, array &$out, bool &$handled) {
45
                $parts = explode('$',$id);
45
                $parts = explode('$',$id,2);
46
                $id = $parts[0];
46
                $id = $parts[0];
-
 
47
                $ra_email = $parts[1] ?? null/*no filter*/;
47
 
48
 
48
                if ($id == 'oidplus:notifications') {
49
                if ($id == 'oidplus:notifications') {
49
                        $handled = true;
50
                        $handled = true;
50
                        $ra_email = $parts[1] ?? null/*no filter*/;
-
 
51
 
51
 
52
                        $out['title'] = _L('Notifications');
52
                        $out['title'] = _L('Notifications');
53
                        $out['icon'] = file_exists(__DIR__.'/img/main_icon.png') ? OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/main_icon.png' : '';
53
                        $out['icon'] = file_exists(__DIR__.'/img/main_icon.png') ? OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/main_icon.png' : '';
54
 
54
 
55
                        if ($ra_email == 'admin') {
55
                        if ($ra_email == 'admin') {