Permalink
Browse files

fixing namespace lookup to not use whole page name to lookup namespac…

…e id (which will always fail)
  • Loading branch information...
JohnGreeley authored and moy committed Jun 26, 2018
1 parent e41ee9b commit 35119dea3930288aecbaff465a968254d1ea1b5e
Showing with 3 additions and 2 deletions.
  1. +3 −2 git-remote-mediawiki
View
@@ -1370,8 +1370,9 @@ sub get_mw_namespace_id {
}
sub get_mw_namespace_id_for_page {
my $namespace = shift;
if ($namespace =~ /^([^:]*):/) {
my $page = shift;
if ($page =~ /^([^:]*):/) {
my $namespace = $1;
return get_mw_namespace_id($namespace);
} else {
return;

0 comments on commit 35119de

Please sign in to comment.