opnsense-ports/net-mgmt/phpweathermap/files/patch-editor.php
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

24 lines
580 B
PHP

--- editor.php.orig 2011-01-06 16:39:40.000000000 +0800
+++ editor.php 2011-01-07 21:38:39.000000000 +0800
@@ -1,10 +1,10 @@
<?php
require_once 'editor.inc.php';
-require_once 'Weathermap.class.php';
+require_once '%%DATADIR%%/Weathermap.class.php';
// so that you can't have the editor active, and not know about it.
-$ENABLED=false;
+$ENABLED=true;
if(! $ENABLED)
{
@@ -17,7 +17,7 @@
$mapdir='configs';
$cacti_base = '../../';
$cacti_url = '/';
-$ignore_cacti=FALSE;
+$ignore_cacti=true;
$configerror = '';
$config_loaded = @include_once 'editor-config.php';