Jump to content


Photo

blog this plugins in the blog app folder


As mentioned on AIM the "blog this" class needs all the plugins of third party apps in its folder while the goal for 3.1 was to move all the file for each app in its own folder (see profile tabs, attachments, report plugins, etc).

In admin/applications_addon/ips/blog/sources/classes/blogthis/bt.php:
$_f = IPSLib::getAppDir('blog') . '/extensions/blogthis/bt_' . $app . '.php';
We should change it to something like:
$_f = IPSLib::getAppDir( $app ) . '/extensions/blogthis.php';

Status: Fixed
Version: 2.1.0
Fixed In: 0


3 Comments

Updating status to: Flagged For Future Version
Updating Fixed In to: 0

This should probably wait for 4.x
Updating Status to: Fixed

This was already included at some point actually, probably for 2.5.

   /* Do we have a plug in? */
   $_f = IPSLib::getAppDir( $app ) . '/extensions/blogthis/bt_' . $app . '.php';
  
   if ( ! is_file( $_f ) )
   {
    $_f = IPSLib::getAppDir('blog') . '/extensions/blogthis/bt_' . $app . '.php';
   }
  
   if ( is_file( $_f ) )
   {
    $classToLoad  = IPSLib::loadLibrary( $_f, 'bt_' . $app, 'blog' );
    $this->_class = new $classToLoad( $registry, $app, $incoming );
   }
   else
   {
    $classToLoad  = IPSLib::loadLibrary( '', 'blogthis_base', 'blog' );
    $this->_class = new $classToLoad( $registry, $app, $incoming );
   }
    • Marcher Technologies likes this