Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function doExecute( ipsRegistry $registry )
- {
- //-----------------------------------------
- // What to do?
- //-----------------------------------------
- if ( $this->request['do'] == 'getPage')
- {
- /* Load topic class */
- if ( ! $this->registry->isClassLoaded('topics') )
- {
- $classToLoad = IPSLib::loadLibrary( IPSLib::getAppDir( 'forums' ) . "/sources/classes/topics.php", 'app_forums_classes_topics', 'forums' );
- $this->registry->setClass( 'topics', new $classToLoad( $this->registry ) );
- }
- $this->lang->loadLanguageFile( array( 'public_topic', 'public_mod' ), 'forums' );
- $this->_getPage();
- } else {
- parent::doExecute($registry);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment