includes/namespaces/special.php
changeset 1301 bd9e124f5904
parent 1286 14be93201c10
equal deleted inserted replaced
1300:1f97ee3ec614 1301:bd9e124f5904
    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