Subversion Repositories oidplus

Rev

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

Rev 1033 Rev 1050
Line 15... Line 15...
15
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
 * See the License for the specific language governing permissions and
16
 * See the License for the specific language governing permissions and
17
 * limitations under the License.
17
 * limitations under the License.
18
 */
18
 */
19
 
19
 
20
if (!defined('INSIDE_OIDPLUS')) die();
20
namespace ViaThinkSoft\OIDplus;
21
 
21
 
22
class OIDplusPageAdminColors extends OIDplusPagePluginAdmin {
22
class OIDplusPageAdminColors extends OIDplusPagePluginAdmin {
23
 
23
 
24
        public function htmlHeaderUpdate(&$head_elems) {
24
        public function htmlHeaderUpdate(&$head_elems) {
25
                foreach ($head_elems as &$line) {
25
                foreach ($head_elems as &$line) {
Line 229... Line 229...
229
                $msg = '';
229
                $msg = '';
230
                if ($do_edits) {
230
                if ($do_edits) {
231
                        try {
231
                        try {
232
                                OIDplus::config()->setValue('color_invert', $set_value ? 1 : 0);
232
                                OIDplus::config()->setValue('color_invert', $set_value ? 1 : 0);
233
                                OIDplus::config()->setValue('oobe_colors_done', '1');
233
                                OIDplus::config()->setValue('oobe_colors_done', '1');
234
                        } catch (Exception $e) {
234
                        } catch (\Exception $e) {
235
                                $msg = $e->getMessage();
235
                                $msg = $e->getMessage();
236
                                $errors_happened = true;
236
                                $errors_happened = true;
237
                        }
237
                        }
238
                }
238
                }
239
 
239