Author: Derick Rethans
Date: 2006-01-13 09:31:35 +0100 (Fri, 13 Jan 2006)
New Revision: 1805
Log:
- Fixed autoload and CS.
Modified:
scripts/generate_package_xml.php
Modified: scripts/generate_package_xml.php
===================================================================
--- scripts/generate_package_xml.php 2006-01-13 08:30:57 UTC (rev 1804)
+++ scripts/generate_package_xml.php 2006-01-13 08:31:35 UTC (rev 1805)
@@ -18,6 +18,11 @@
*/
require_once 'PEAR/PackageFileManager2.php';
+/**
+ * Load the base package to boot strap the autoloading
+ */
+require_once 'Base/trunk/src/base.php';
+
// {{{ __autoload()
/**
@@ -27,22 +32,21 @@
*/
function __autoload( $class_name )
{
- require_once("Base/trunk/src/base.php");
- if ( strpos( $class_name, "_" ) !== false )
+ if ( ezcBase::autoload( $class_name ) )
{
- $file = str_replace( "_", "/", $class_name ) . ".php";
- $val = require_once( $file );
- if ( $val == 0 )
- return true;
- return false;
+ return;
}
- ezcBase::autoload( $class_name );
+ if ( strpos( $class_name, '_' ) !== false )
+ {
+ $file = str_replace( '_', '/', $class_name ) . '.php';
+ require_once( $file );
+ }
}
// }}}
-class ezcPackageManager {
-
+class ezcPackageManager
+{
protected $paths = array(
'package' => '',
'install' => '',
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components