Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- */
- protected function _getSkinHooks( $name, $classname, $id )
- {
- /* Hooks: Are we overloading this class? */
- $hooksCache = ipsRegistry::cache()->getCache('hooks');
- if( isset($hooksCache['skinHooks'][ $name ]) && is_array($hooksCache['skinHooks'][ $name ]) && count($hooksCache['skinHooks'][ $name ]) )
- {
- foreach( $hooksCache['skinHooks'][ $name ] as $classOverloader )
- {
- if( is_file( IPS_HOOKS_PATH . $classOverloader['filename'] ) )
- {
- if( ! class_exists( $classOverloader['className'] ) )
- {
- /* Hooks: Do we have the hook file? */
- $thisContents = file_get_contents( IPS_HOOKS_PATH . $classOverloader['filename'] );
- $thisContents = str_replace( $name."(~id~)", $classname, $thisContents );
- ob_start();
- eval( $thisContents );
- ob_end_clean(); //linia problema (3849)
- }
- if( class_exists( $classOverloader['className'] ) )
- {
- /* Hooks: We have the hook file and the class exists - reset the classname to load */
- $classname = $classOverloader['className'];
- }
- }
- }
- }
- return $classname;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement