Announcement

#1 2012-01-11 10:38:15

Vanndy
Translation Team
Cambodia
2011-09-29
35

how to use array_push out of admin side

Hi Piwigo team,

I'm looking for your help.

To alert message when we process something successfully, Piwigo always use array_push() at the admin side like this example:

array_push(
          $page['infos'],
          l10n('Update success')
          );

But it always errors when I was trying to use this kind of message out of admin side (at the front-end side).

Warning: array_push() expects parameter 1 to be array,  null given.

What's wrong with this? And how to do fix this?

Or Piwigo have other ways to display info message at the front-end?

Thank in advance.

Kindly Regards,
Vanndy

Last edited by Vanndy (2012-01-11 10:45:58)

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact