freebsd-ports/www/dotproject-devel/files/patch-jpgraph.php
Martin Wilke c59aea64ac - Add www/dotproject-devel
dotProject is a PHP web-based project management framework that includes modules
for companies, projects, tasks (with Gantt charts), forums, files, calendar,
contacts, tickets/helpdesk, multi-language support, user/module permissions and
themes.

Features Include

    * User Management
    * LDAP / Active Directory authentication
    * Email based trouble Ticket System, (Integrated voxel.net's ticketsmith)
    * Client/Company Management
    * Project listings
    * Hierarchical Task List
    * File Repository
    * Contact List
    * Calendar
    * Discussion Forum
    * Resource Based Permissions

 WWW: http://www.dotproject.net
2007-06-11 05:18:24 +00:00

20 lines
688 B
PHP

--- lib/jpgraph/src/jpgraph.php-orig Mon Apr 30 08:34:06 2007
+++ lib/jpgraph/src/jpgraph.php Mon Apr 30 21:48:45 2007
@@ -56,7 +56,7 @@
DEFINE('TTF_DIR', $sroot.'/fonts/');
}
} else {
- DEFINE('TTF_DIR','/usr/X11R6/lib/X11/fonts/truetype/');
+ DEFINE('TTF_DIR','/usr/X11R6/lib/X11/fonts/webfonts/');
}
}
@@ -701,6 +701,8 @@
//---------------
// PUBLIC METHODS
function Set($aLocale) {
+ $query = "SELECT 'config_value' FROM 'config' WHERE 'config_name = host_locale'";
+ $aLocale = mysql_query ($query);
if ( in_array($aLocale, array_keys($this->iDayAbb)) ){
$this->iLocale = $aLocale;
return TRUE; // already cached nothing else to do!