Changeset 896

Show
Ignore:
Timestamp:
09/05/08 01:33:40 (3 months ago)
Author:
MattRead
Message:

fix compat issues

Location:
plugins/hpm/trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • plugins/hpm/trunk/habaripackage.php

    r884 r896  
    218218    private function trigger_hooks( $hook ) 
    219219    { 
     220        $install_profile = $this->install_profile; 
    220221        switch ( $this->type ) { 
    221222            case 'plugin': 
    222                 foreach( $this->install_profile as $file => $install_location ) { 
     223                foreach( $install_profile as $file => $install_location ) { 
    223224                    if ( strpos( basename($file), '.plugin.php' ) !== false ) { 
    224225                        $plugin_file = HABARI_PATH . $install_location; 
  • plugins/hpm/trunk/habaripackages.php

    r884 r896  
    222222    public static function tempnam() 
    223223    { 
    224         return tempnam( HABARI_PATH . '/3rdparty/hpm', 'HPM-' ); 
     224        return tempnam( self::tempdir(), 'HPM-' ); 
    225225    } 
    226226     
     
    228228    { 
    229229        $tmp_dir = 'HPM-' . md5( UUID::get() ); 
    230         if ( is_writable( HABARI_PATH . "/3rdparty/hpm" ) ) { 
    231             $tmp_dir = HABARI_PATH . "/3rdparty/hpm/$tmp_dir"; 
    232         } 
    233         else { 
    234             $tmp_dir = sys_get_temp_dir() . "/$tmp_dir"; 
    235         } 
     230        $tmp_dir = HABARI_PATH . "/3rdparty/$tmp_dir"; 
    236231        mkdir( $tmp_dir, 0777 ); 
    237232        return $tmp_dir; 
  • plugins/hpm/trunk/hpm.plugin.php

    r884 r896  
    230230    public function action_auth_ajax_hpm_packages( $handler ) 
    231231    { 
     232        Plugins::act('hpm_init'); 
    232233        $theme = Themes::create( 'admin', 'RawPHPEngine', dirname(__FILE__) .'/' ); 
    233234        $search = isset( $handler->handler_vars['search'] ) ? $handler->handler_vars['search'] : ''; 
  • plugins/hpm/trunk/templates/hpm.php

    r566 r896  
    55        <span class="search pct100"><input id="search" type="search" placeholder="Type and wait to search for any entry component" autosave="habaricontent" results="100" value=""></span> 
    66         
    7         <span class="special_search pct100"> 
    8             <a href="#plugin">Plugins</a> 
    9             <a href="#theme">Themes</a> 
    10             <a href="#admin">Administration</a> 
    11             <a href="#spam">Spam Filter</a> 
    12             <a href="#service">3rdparty Services</a> 
    13             <a href="#two column">Two Column</a> 
    14             <a href="#blue">Blue</a> 
    15             <a href="#pink">Pink</a> 
    16         </span> 
     7        <ul class="dropbutton special_search"> 
     8            <li><a href="#plugin">Plugins</a></li> 
     9            <li><a href="#theme">Themes</a></li> 
     10            <li><a href="#admin">Administration</a></li> 
     11            <li><a href="#spam">Spam Filter</a></li> 
     12            <li><a href="#service">3rdparty Services</a></li> 
     13            <li><a href="#two column">Two Column</a></li> 
     14            <li><a href="#blue">Blue</a></li> 
     15            <li><a href="#pink">Pink</a></li> 
     16        </ul> 
    1717    </div> 
    1818     
     
    2626</div> 
    2727 
    28 <div id="comments"> 
    29 <div class="container items entries"> 
     28<div id="comments" class="container manage comments"> 
    3029    <?php $theme->display( 'hpm_packages' ); ?> 
    31 </div> 
    3230</div> 
    3331 
    3432<script type="text/javascript"> 
    35 liveSearch.search= function() { 
    36     spinner.start(); 
    37  
    38     $.post( 
    39         '<?php echo URL::get('auth_ajax', array('context' => 'hpm_packages')) ?>', 
    40         '&search=' + liveSearch.input.val(), 
    41         function(json) { 
    42             $('.entries').html(json.items); 
    43             spinner.stop(); 
    44             itemManage.initItems(); 
    45             findChildren() 
    46         }, 
    47         'json' 
    48         ); 
    49 }; 
     33itemManage.fetchURL = "<?php echo URL::get('auth_ajax', array('context' => 'hpm_packages')) ?>"; 
     34itemManage.fetchReplace = $('#comments'); 
    5035</script> 
    5136