Jump to content

Topic on Extension talk:Access Control Panel/Flow

Mediawiki 1.23 - No more

3
Zidjinn (talkcontribs)

I use C.holtermann issue (8 June 2014) and v1.1.1.

For me, previous (old) pages, created by Access control panel Groups disapears.

WikiName.org/wiki/ProtectedGroupName:PageName

become 

WikiName.org/wiki/:PageName

if I create a page with this content : #REDIRECT[[ProtectedGroupName:PageName]], the page is visible. (And already protected)..

errors logs are here : https://github.com/JanLuca/UMEduWiki/pull/1

Zidjinn (talkcontribs)
Tosfos (talkcontribs)

I'm pretty sure this is the same issue I had with a new installation of this extension. I see that the extension is not creating the extra namespaces in newer MediaWiki versions. I got the following quick-fix to work in MediaWiki version 1.25. Insert it on bottom of AccessControlPanel.php.

$wgHooks['CanonicalNamespaces'][] = function( array &$namespaces ) {
	$dbr = wfGetDB( DB_SLAVE );

	/* Selecting NAMESPACES */
	$myNamespaces = $dbr->select('tw_namespaces', '*');

	foreach ($myNamespaces as $row) {
		$nsNumber = intval( $row->tw_ns_number );
		$nsName = $row->tw_ns_name;
		$namespaces[$nsNumber] = $nsName;
	}
};
Reply to "Mediawiki 1.23 - No more"