Index: trunk/phase3/includes/media/DjVu.php |
— | — | @@ -34,13 +34,13 @@ |
35 | 35 | if ( !isset( $params['width'] ) ) { |
36 | 36 | return false; |
37 | 37 | } |
38 | | - return "{$params['width']}px-page{$page}"; |
| 38 | + return "page{$page}-{$params['width']}px"; |
39 | 39 | } |
40 | 40 | |
41 | 41 | function parseParamString( $str ) { |
42 | 42 | $m = false; |
43 | | - if ( preg_match( '/^(\d+)px-page(\d+)$/', $str, $m ) ) { |
44 | | - return array( 'width' => $m[1], 'page' => $m[2] ); |
| 43 | + if ( preg_match( '/^page(\d+)-(\d+)px$/', $str, $m ) ) { |
| 44 | + return array( 'width' => $m[2], 'page' => $m[1] ); |
45 | 45 | } else { |
46 | 46 | return false; |
47 | 47 | } |