Skip to content

Commit

Permalink
Some compatibility for coming Zenphoto 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylian committed Dec 6, 2022
1 parent 7e8c5cd commit c937d13
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions single_item_pagination.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
*/
$plugin_description = gettext('Provides extra functionality for numbered pagination of single items (images, albums, Zenpage articles and pages).');
$plugin_author = "Malte Müller (acrylian)";
$plugin_version = '1.1';
$plugin_version = '1.2';

/**
* Prints the single image page navigation with prev/next links and the page number list
Expand Down Expand Up @@ -219,7 +219,7 @@ function printPrevNextItemPagelistWithNav($mode = 'image', $prevtext = 'prev', $
break;
case 'album':
$firstalbum = $albums[0];
$obj = newAlbum($firstalbum);
$obj = Albumbase::newAlbum($firstalbum);
$link = $obj->getLink();
break;
case 'article':
Expand Down Expand Up @@ -247,7 +247,7 @@ function printPrevNextItemPagelistWithNav($mode = 'image', $prevtext = 'prev', $
break;
case 'album':
$album = $albums[$k1 - 1];
$obj = newAlbum($album);
$obj = Albumbase::newAlbum($album);
$link = $obj->getLink();
break;
case 'article':
Expand Down Expand Up @@ -286,7 +286,7 @@ function printPrevNextItemPagelistWithNav($mode = 'image', $prevtext = 'prev', $
break;
case 'album':
$album = $albums[$i - 1];
$obj = newAlbum($album);
$obj = Albumbase::newAlbum($album);
$link = $obj->getLink();
break;
case 'article':
Expand Down Expand Up @@ -319,7 +319,7 @@ function printPrevNextItemPagelistWithNav($mode = 'image', $prevtext = 'prev', $
break;
case 'album':
$album = $albums[$k2 - 1];
$obj = newAlbum($album);
$obj = Albumbase::newAlbum($album);
$link = $obj->getLink();
break;
case 'article':
Expand Down Expand Up @@ -350,7 +350,7 @@ function printPrevNextItemPagelistWithNav($mode = 'image', $prevtext = 'prev', $
break;
case 'album':
$album = $albums[($total - 1)];
$obj = newAlbum($album);
$obj = Albumbase::newAlbum($album);
$link = $obj->getLink();
break;
case 'article':
Expand Down Expand Up @@ -378,7 +378,7 @@ function printPrevNextItemPagelistWithNav($mode = 'image', $prevtext = 'prev', $
if ($current != $total) {
$hasnext = true;
$album = $albums[$current];
$obj = newAlbum($album);
$obj = Albumbase::newAlbum($album);
$link = $obj->getLink();
}
break;
Expand Down

0 comments on commit c937d13

Please sign in to comment.