Skip to content

Commit

Permalink
Adapt stuff using RSSBuilder to new library location
Browse files Browse the repository at this point in the history
  • Loading branch information
giallu committed May 17, 2009
1 parent 0ebee35 commit 5cc9385
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
11 changes: 1 addition & 10 deletions core.php
Expand Up @@ -106,23 +106,14 @@
function __autoload( $className ) {
global $g_core_path;

switch ( $className ) {
case 'DisposableEmailChecker':
require_once( $g_core_path . 'disposable' . DIRECTORY_SEPARATOR . 'disposable.php' );
return;
case 'PHPMailer':
require_once( PHPMAILER_PATH . 'class.phpmailer.php' ); // phpmailer_path is defined in email api
return;
}

$t_require_path = $g_core_path . 'classes' . DIRECTORY_SEPARATOR . $className . '.class.php';

if ( file_exists( $t_require_path ) ) {
require_once( $t_require_path );
return;
}

$t_require_path = $g_core_path . 'rssbuilder' . DIRECTORY_SEPARATOR . 'class.' . $className . '.inc.php';
$t_require_path = BASE_PATH . '/library/rssbuilder/class.' . $className . '.inc.php';

if ( file_exists( $t_require_path ) ) {
require_once( $t_require_path );
Expand Down
2 changes: 1 addition & 1 deletion issues_rss.php
Expand Up @@ -36,7 +36,7 @@

$t_core_path = config_get( 'core_path' );

require_once( $t_core_path . 'rssbuilder/class.RSSBuilder.inc.php' );
require_once( 'rssbuilder/class.RSSBuilder.inc.php' );
require_once( $t_core_path . 'user_api.php' );
require_once( $t_core_path . 'filter_api.php' );
require_once( $t_core_path . 'rss_api.php' );
Expand Down
2 changes: 1 addition & 1 deletion news_rss.php
Expand Up @@ -27,7 +27,7 @@

$t_core_path = config_get( 'core_path' );

require_once( $t_core_path . 'rssbuilder/class.RSSBuilder.inc.php' );
require_once( 'rssbuilder/class.RSSBuilder.inc.php' );
require_once( $t_core_path . 'news_api.php' );
require_once( $t_core_path . 'project_api.php' );
require_once( $t_core_path . 'print_api.php' );
Expand Down

0 comments on commit 5cc9385

Please sign in to comment.