Skip Menu |

This queue is for tickets about the mediawiki-slides CPAN distribution.

Report information
The Basics
Id: 21974
Status: new
Priority: 0/
Queue: mediawiki-slides

People
Owner: Nobody in particular
Requestors: nikw [...] martnet.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.04
Fixed in: (no value)



Subject: Patch for namespaces in mediawiki Slides extension
The mediawiki Slides extension only works in the Main mediawiki namespace. The attached patch resolves this.
Subject: mediawiki-slides-namespaces.diff
*** mediawiki-slides-0.04/extensions/Slides.php 2006-04-18 14:00:07.000000000 -0400 --- mediawiki-slides-X/extensions/Slides.php 2006-10-09 08:13:28.000000000 -0400 *************** *** 76,81 **** --- 76,82 ---- $aParams = array(); $sCurrent; # the page we are currently on + $sNamespace; # namespace of the page we are currently on $aLinks = array(); # all the entries in the navbar $sPrefix = ''; # the presentations name $bArticles = false; # stopped parsing options? *************** *** 173,178 **** --- 174,181 ---- # Get the current page from the Parser member mTitle, to make it different $sCurrent = $parser->mTitle->getText(); + $sNamespace = $parser->mTitle->getNsText(); + if ($sNamespace) { $sCurrent="$sNamespace:$sCurrent"; } # 'My presentation - Start' => 'Start' if ($sPrefix != '')