mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Our compatibility code raelly needs to go into functions.inc so it can get installed before other php files are sourced.
This commit is contained in:
parent
022a0f9ace
commit
50797647a4
@ -31,6 +31,20 @@
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/* BEGIN compatibility goo with HEAD */
|
||||
if(!function_exists("gettext")) {
|
||||
function gettext($text) {
|
||||
return $text;
|
||||
}
|
||||
}
|
||||
|
||||
if(!function_exists("pfSenseHeader")) {
|
||||
function pfSenseHeader($location) {
|
||||
header("Location: $location");
|
||||
}
|
||||
}
|
||||
/* END compatibility goo with HEAD */
|
||||
|
||||
/* include all configuration functions */
|
||||
require_once("captiveportal.inc");
|
||||
require_once("filter.inc");
|
||||
|
||||
@ -33,20 +33,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/* BEGIN compatibility goo with HEAD */
|
||||
if(!function_exists("gettext")) {
|
||||
function gettext($text) {
|
||||
return $text;
|
||||
}
|
||||
}
|
||||
|
||||
if(!function_exists("pfSenseHeader")) {
|
||||
function pfSenseHeader($location) {
|
||||
header("Location: $location");
|
||||
}
|
||||
}
|
||||
/* END compatibility goo with HEAD */
|
||||
|
||||
function get_tmp_file() {
|
||||
return "/tmp/tmp-" . time();
|
||||
}
|
||||
@ -2352,4 +2338,4 @@ function is_dhcp_server_enabled() {
|
||||
return $dhcpdenable;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
Loading…
Reference in New Issue
Block a user