cvs: pear /PEAR_Frontend_Gtk Gtk.php

From: Date: Sun, 16 Jun 2002 08:48:16 +0000
Subject: cvs: pear /PEAR_Frontend_Gtk Gtk.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4643@lists.php.net to get a copy of this message
alan_k Sun Jun 16 04:48:16 2002 EDT Modified files: /pear/PEAR_Frontend_Gtk Gtk.php Log: Die if no glade Index: pear/PEAR_Frontend_Gtk/Gtk.php diff -u pear/PEAR_Frontend_Gtk/Gtk.php:1.15 pear/PEAR_Frontend_Gtk/Gtk.php:1.16 --- pear/PEAR_Frontend_Gtk/Gtk.php:1.15 Thu Jun 13 05:37:02 2002 +++ pear/PEAR_Frontend_Gtk/Gtk.php Sun Jun 16 04:48:16 2002 @@ -16,7 +16,7 @@ | Author: Alan Knowles <alan@akbkhome.com> | +----------------------------------------------------------------------+ - $Id: Gtk.php,v 1.15 2002/06/13 09:37:02 alan_k Exp $ + $Id: Gtk.php,v 1.16 2002/06/16 08:48:16 alan_k Exp $ */ require_once "PEAR.php"; @@ -109,6 +109,9 @@ function _loadGlade() { $file = dirname(__FILE__).'/Gtk/installer.glade'; + if (!class_exists('GladeXML')) + return PEAR::raiseError('Glade is currently required for the installer to work, please see php GTK install instructions for more information',null,PEAR_ERROR_DIE); + $this->_glade = &new GladeXML($file); $data = implode('',file($file)); preg_match_all('/\<name\>([^\<]+)\<\/name\>/',$data,$items); @@ -601,4 +604,4 @@ // }}} } -?> \ No newline at end of file +?>

« previous php.pear.cvs (#4643) next »