Skip to content

Commit c937d13

Browse files
committed
Some compatibility for coming Zenphoto 1.6
1 parent 7e8c5cd commit c937d13

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

single_item_pagination.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
*/
3333
$plugin_description = gettext('Provides extra functionality for numbered pagination of single items (images, albums, Zenpage articles and pages).');
3434
$plugin_author = "Malte Müller (acrylian)";
35-
$plugin_version = '1.1';
35+
$plugin_version = '1.2';
3636

3737
/**
3838
* Prints the single image page navigation with prev/next links and the page number list
@@ -219,7 +219,7 @@ function printPrevNextItemPagelistWithNav($mode = 'image', $prevtext = 'prev', $
219219
break;
220220
case 'album':
221221
$firstalbum = $albums[0];
222-
$obj = newAlbum($firstalbum);
222+
$obj = Albumbase::newAlbum($firstalbum);
223223
$link = $obj->getLink();
224224
break;
225225
case 'article':
@@ -247,7 +247,7 @@ function printPrevNextItemPagelistWithNav($mode = 'image', $prevtext = 'prev', $
247247
break;
248248
case 'album':
249249
$album = $albums[$k1 - 1];
250-
$obj = newAlbum($album);
250+
$obj = Albumbase::newAlbum($album);
251251
$link = $obj->getLink();
252252
break;
253253
case 'article':
@@ -286,7 +286,7 @@ function printPrevNextItemPagelistWithNav($mode = 'image', $prevtext = 'prev', $
286286
break;
287287
case 'album':
288288
$album = $albums[$i - 1];
289-
$obj = newAlbum($album);
289+
$obj = Albumbase::newAlbum($album);
290290
$link = $obj->getLink();
291291
break;
292292
case 'article':
@@ -319,7 +319,7 @@ function printPrevNextItemPagelistWithNav($mode = 'image', $prevtext = 'prev', $
319319
break;
320320
case 'album':
321321
$album = $albums[$k2 - 1];
322-
$obj = newAlbum($album);
322+
$obj = Albumbase::newAlbum($album);
323323
$link = $obj->getLink();
324324
break;
325325
case 'article':
@@ -350,7 +350,7 @@ function printPrevNextItemPagelistWithNav($mode = 'image', $prevtext = 'prev', $
350350
break;
351351
case 'album':
352352
$album = $albums[($total - 1)];
353-
$obj = newAlbum($album);
353+
$obj = Albumbase::newAlbum($album);
354354
$link = $obj->getLink();
355355
break;
356356
case 'article':
@@ -378,7 +378,7 @@ function printPrevNextItemPagelistWithNav($mode = 'image', $prevtext = 'prev', $
378378
if ($current != $total) {
379379
$hasnext = true;
380380
$album = $albums[$current];
381-
$obj = newAlbum($album);
381+
$obj = Albumbase::newAlbum($album);
382382
$link = $obj->getLink();
383383
}
384384
break;

0 commit comments

Comments
 (0)