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 != '')