includes/namespaces/special.php
changeset 1286 14be93201c10
parent 1278 9a4b0c3056ac
equal deleted inserted replaced
1285:4d511be69a5f 1286:14be93201c10
    60 				'protected' => 0,
    60 				'protected' => 0,
    61 				'delvotes' => 0,
    61 				'delvotes' => 0,
    62 				'delvote_ips' => '',
    62 				'delvote_ips' => '',
    63 				'wiki_mode' => 2,
    63 				'wiki_mode' => 2,
    64 				'page_exists' => $this->exists,
    64 				'page_exists' => $this->exists,
    65 				'page_format' => getConfig('default_page_format', 'wikitext')
    65 				'page_format' => getConfig('default_page_format', 'wikitext'),
       
    66 				'require_admin' => $this->namespace === 'Admin'
    66 			);
    67 			);
       
    68 		
       
    69 		$code = $plugins->setHook('ns_special_cdata');
       
    70 		foreach ( $code as $cmd )
       
    71 		{
       
    72 			eval($cmd);
       
    73 		}
       
    74 		
    67 		$this->cdata = Namespace_Default::bake_cdata($this->cdata);
    75 		$this->cdata = Namespace_Default::bake_cdata($this->cdata);
    68 		
    76 		
    69 		$this->title =& $this->cdata['name'];
    77 		$this->title =& $this->cdata['name'];
    70 	}
    78 	}
    71 	
    79