Subversion Repositories oidplus

Rev

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

Rev 1116 Rev 1130
Line 112... Line 112...
112
                return false;
112
                return false;
113
        }
113
        }
114
 
114
 
115
        /**
115
        /**
116
         * Implements interface 1.3.6.1.4.1.37476.2.5.2.3.8
116
         * Implements interface 1.3.6.1.4.1.37476.2.5.2.3.8
117
         * @param $user
117
         * @param string|null $user
118
         * @return array
118
         * @return array
119
         * @throws OIDplusException
119
         * @throws OIDplusException
120
         */
120
         */
121
        public function getNotifications($user=null): array {
121
        public function getNotifications(string $user=null): array {
122
                $notifications = array();
122
                $notifications = array();
123
                if ((!$user || ($user == 'admin')) && OIDplus::authUtils()->isAdminLoggedIn()) {
123
                if ((!$user || ($user == 'admin')) && OIDplus::authUtils()->isAdminLoggedIn()) {
124
                        if (!class_exists('ZipArchive')) {
124
                        if (!class_exists('ZipArchive')) {
125
                                $title = _L('Nostalgia');
125
                                $title = _L('Nostalgia');
126
                                $notifications[] = array('ERR', _L('OIDplus plugin "%1" is enabled, but the required PHP extension "%2" is not installed.', '<a '.OIDplus::gui()->link('oidplus:nostalgia').'>'.htmlentities($title).'</a>', 'Zip'));
126
                                $notifications[] = array('ERR', _L('OIDplus plugin "%1" is enabled, but the required PHP extension "%2" is not installed.', '<a '.OIDplus::gui()->link('oidplus:nostalgia').'>'.htmlentities($title).'</a>', 'Zip'));