"Aaron Schulz" posted a comment on MediaWiki.r105208. URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/105208#c27066
Commit summary for MediaWiki.r105208: FU r104216: keep the r103738 regex check for thumbnails but use the parent directory as the source file name. This avoids the assumption that the thumb URL starts with /thumb. Aaron Schulz's comment: Yes, you can try to use that config and strip the hostname and such off. $repo = RepoGroup::singleton()->getLocalRepo() $bits = wfParseUrl( $repo->getZonePath( 'thumb' ) ); ...do something with $bits['path'] _______________________________________________ MediaWiki-CodeReview mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview
