DenChu

Untitled

Oct 25th, 2018
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.71 KB | None | 0 0
  1. public function doExecute( ipsRegistry $registry )
  2.     {
  3.        
  4.  
  5.         //-----------------------------------------
  6.         // What to do?
  7.         //-----------------------------------------
  8.        
  9.         if ( $this->request['do'] == 'getPage')
  10.         {
  11.                     /* Load topic class */
  12.                 if ( ! $this->registry->isClassLoaded('topics') )
  13.                 {
  14.                     $classToLoad = IPSLib::loadLibrary( IPSLib::getAppDir( 'forums' ) . "/sources/classes/topics.php", 'app_forums_classes_topics', 'forums' );
  15.                     $this->registry->setClass( 'topics', new $classToLoad( $this->registry ) );
  16.                 }
  17.                
  18.                 $this->lang->loadLanguageFile( array( 'public_topic', 'public_mod' ), 'forums' );
  19.                 $this->_getPage();
  20.         } else {
  21.             parent::doExecute($registry);
  22.         }
  23.    
  24.     }
Advertisement
Add Comment
Please, Sign In to add comment