Jarry1250 has uploaded a new change for review. https://gerrit.wikimedia.org/r/69019
Change subject: Update thumb.php to handle "langXX"-type thumbnail names ...................................................................... Update thumb.php to handle "langXX"-type thumbnail names See changeset #25838 for the introduction of that type, rationale, etc. See also bug #49629 for why we may want to abandon this approach at some point (probably not now though). Tested locally. Change-Id: I3e703c84ff84e30d8b96acf491318829767eb2ab --- M thumb.php 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/19/69019/1 diff --git a/thumb.php b/thumb.php index 4a0c9fb..f171ac9 100644 --- a/thumb.php +++ b/thumb.php @@ -330,6 +330,10 @@ $params['page'] = $pagenum; } return $params; // valid thumbnail URL + } elseif ( preg_match( '!^lang([a-z]+(?:-[a-z]+)*)-(\d*)px-[^/]*$!', $thumbname, $matches ) ) { + $params['lang'] = $matches[1]; + $params['width'] = array_pop( $matches ); + return $params; // valid thumbnail URL } return null; // not a valid thumbnail URL -- To view, visit https://gerrit.wikimedia.org/r/69019 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I3e703c84ff84e30d8b96acf491318829767eb2ab Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Jarry1250 <jarry1...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits