Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rows and columns swapped on photos page

Fixes issue#34
  • Loading branch information...
commit 6c3005b0b7e271fc0424ff17135b2292e86a37a0 1 parent 0796029
@jeroenrnl authored
Showing with 6 additions and 7 deletions.
  1. +2 −2 php/edit_photos.php
  2. +2 −3 php/photo.php
  3. +2 −2 php/photos.php
View
4 php/edit_photos.php
@@ -26,8 +26,8 @@
die("Illegal characters in _order");
}
- if (!$_cols) { $_cols = $user->prefs->get("num_rows"); }
- if (!$_rows) { $_rows = $user->prefs->get("num_cols"); }
+ if (!$_cols) { $_cols = $user->prefs->get("num_cols"); }
+ if (!$_rows) { $_rows = $user->prefs->get("num_rows"); }
if (!$_off) { $_off = 0; }
if (!$_order) { $_order = conf::get("interface.sort.order"); }
View
5 php/photo.php
@@ -16,7 +16,6 @@
* along with Zoph; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-
require_once("include.inc.php");
$photo_id = getvar("photo_id");
$_off = getvar("_off");
@@ -91,8 +90,8 @@
$_rows = (int) getvar("_rows");
$_off = (int) getvar("_off");
- if (!$_cols) { $_cols = $user->prefs->get("num_rows"); }
- if (!$_rows) { $_rows = $user->prefs->get("num_cols"); }
+ if (!$_cols) { $_cols = $user->prefs->get("num_cols"); }
+ if (!$_rows) { $_rows = $user->prefs->get("num_rows"); }
if (!$_off) { $_off = 0; }
$cells = $_cols * $_rows;
View
4 php/photos.php
@@ -30,8 +30,8 @@
die("Illegal characters in _order");
}
- if (!$_cols) { $_cols = $user->prefs->get("num_rows"); }
- if (!$_rows) { $_rows = $user->prefs->get("num_cols"); }
+ if (!$_cols) { $_cols = $user->prefs->get("num_cols"); }
+ if (!$_rows) { $_rows = $user->prefs->get("num_rows"); }
if (!$_off) { $_off = 0; }
if (!$_order) { $_order = conf::get("interface.sort.order"); }

1 comment on commit 6c3005b

@jeroenrnl
Owner

Fixes #34

Please sign in to comment.
Something went wrong with that request. Please try again.