Skip to content

Commit

Permalink
Merge pull request netPhotoGraphics#1086 from Simounet/cleanup
Browse files Browse the repository at this point in the history
No need to check zp_loggedin() twice
  • Loading branch information
acrylian authored Jul 13, 2017
2 parents d52c5a5 + 5b147da commit dc8f89e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions zp-core/template-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,10 @@ function printZenJavascripts() {
global $_zp_current_album;
?>
<script type="text/javascript" src="<?php echo WEBPATH . "/" . ZENFOLDER; ?>/js/jquery.js"></script>
<?php
if(zp_loggedin()) {
<?php
if(zp_loggedin()) {
?>
<script type="text/javascript" src="<?php echo WEBPATH . "/" . ZENFOLDER; ?>/js/zenphoto.js"></script>
<?php
}
if (zp_loggedin()) {
?>
<script type="text/javascript">
// <!-- <![CDATA[
var deleteAlbum1 = "<?php echo gettext("Are you sure you want to delete this entire album?"); ?>";
Expand Down

0 comments on commit dc8f89e

Please sign in to comment.