Index: trunk/extensions/Collection/Collection.body.php |
— | — | @@ -510,7 +510,7 @@ |
511 | 511 | |
512 | 512 | static function addChapter( $name ) { |
513 | 513 | $collection = CollectionSession::getCollection(); |
514 | | - array_unshift( $collection['items'], array( |
| 514 | + array_push( $collection['items'], array( |
515 | 515 | 'type' => 'chapter', |
516 | 516 | 'title' => $name, |
517 | 517 | ) ); |
Index: trunk/extensions/Collection/Collection.templates.php |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | */ |
14 | 14 | class CollectionPageTemplate extends QuickTemplate { |
15 | 15 | function execute() { |
16 | | - $mediapath = $GLOBALS['wgScriptPath'] . '/extensions/Collection/images/'; |
| 16 | + $mediapath = $GLOBALS['wgExtensionAssetsPath'] . '/Collection/images/'; |
17 | 17 | ?> |
18 | 18 | |
19 | 19 | <div class="mw-float-start collection-column collection-column-left"> |
— | — | @@ -53,7 +53,7 @@ |
54 | 54 | |
55 | 55 | <div class="mw-float-start collection-column collection-column-right"> |
56 | 56 | |
57 | | - <div class="collection-column-right-box"> |
| 57 | + <div class="collection-column-right-box" id="coll-orderbox"> |
58 | 58 | <h2><span class="mw-headline"><?php $this->msg( 'coll-book_title' ) ?></span></h2> |
59 | 59 | <?php |
60 | 60 | $partnerData = $this->data['podpartners']['pediapress']; |
— | — | @@ -90,7 +90,7 @@ |
91 | 91 | <?php } ?> |
92 | 92 | </div> |
93 | 93 | |
94 | | - <div class="collection-column-right-box"> |
| 94 | + <div class="collection-column-right-box" id="coll-downloadbox"> |
95 | 95 | <h2><span class="mw-headline"><?php $this->msg( 'coll-download_title' ) ?></span></h2> |
96 | 96 | <?php if ( count( $this->data['formats'] ) == 1 ) { |
97 | 97 | $writer = array_rand( $this->data['formats'] ); |