equal
deleted
inserted
replaced
85 { |
85 { |
86 global $db, $session, $paths, $template, $plugins; // Common objects |
86 global $db, $session, $paths, $template, $plugins; // Common objects |
87 global $lang; |
87 global $lang; |
88 |
88 |
89 $whitelist_ns = array('Article', 'User', 'Help', 'Template', 'Category', 'Project'); |
89 $whitelist_ns = array('Article', 'User', 'Help', 'Template', 'Category', 'Project'); |
|
90 if ( $session->user_level >= USER_LEVEL_ADMIN ) |
|
91 { |
|
92 $whitelist_ns[] = 'System'; |
|
93 } |
90 $code = $plugins->setHook('page_create_ns_whitelist'); |
94 $code = $plugins->setHook('page_create_ns_whitelist'); |
91 foreach ( $code as $cmd ) |
95 foreach ( $code as $cmd ) |
92 { |
96 { |
93 eval($cmd); |
97 eval($cmd); |
94 } |
98 } |