[other] Renaming redirect() function to pwg_redirect() #112

Closed
opened 2026-10-04 23:43:48 +02:00 by adam · 2 comments
Owner

Reported by eric on 30 Jan 2010 14:13

Version: 2.0.8

FluxBB (may be other php scripts) uses a function called "redirect()" and Piwigo uses the same function name.
To avoid php errors "Can not redeclare function *** alreday declared in...", we could rename Piwigo's redirect() function to pwg_redirect().

Subject was discussed here : http://fr.piwigo.org/forum/viewtopic.php?pid=131460#p131460

Piwigo Bugtracker #1418

**Reported by eric on 30 Jan 2010 14:13** **Version:** 2.0.8 FluxBB (may be other php scripts) uses a function called &quot;redirect()&quot; and Piwigo uses the same function name. To avoid php errors &quot;Can not redeclare function **\* alreday declared in...&quot;, we could rename Piwigo&#039;s redirect() function to pwg_redirect(). Subject was discussed here : http://fr.piwigo.org/forum/viewtopic.php?pid=131460#p131460 [Piwigo Bugtracker #1418](http://piwigo.org/bugs/view.php?id=1418) <!-- github-sync-id:97225921 -->
adam closed this issue 2026-10-04 23:43:48 +02:00
Author
Owner

Comment posted by eric on 30 Jan 2010 14:17

If the Piwigo's redirect() function is renamed, we have to notice all plugins developpers to check it in their plugins.

**Comment posted by eric on 30 Jan 2010 14:17** If the Piwigo&#039;s redirect() function is renamed, we have to notice all plugins developpers to check it in their plugins. <!-- github-comment-id:124891905 -->
Author
Owner

Obviously this problem is very minor and won't be fixed.

Obviously this problem is very minor and won't be fixed. <!-- github-comment-id:223518193 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#112