Changeset 9252


Ignore:
Timestamp:
Feb 16, 2011, 6:59:27 PM (13 years ago)
Author:
Gotcha
Message:

Problem with $pagestart when picture haven't comments
Thanks to cljosse.
http://fr.piwigo.org/forum/viewtopic.php?pid=161921#p161921

Location:
extensions/spread_menus
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/spread_menus/main.inc.php

    r6634 r9252  
    22/*
    33Plugin Name: Spread menus
    4 Version: 2.1.b
     4Version: auto
    55Description: Provide menus on any public pages
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=400
     
    1212define('SPREADM_DIR' , basename(dirname(__FILE__)));
    1313define('SPREADM_PATH' , PHPWG_PLUGINS_PATH . SPREADM_DIR . '/');
    14 define('SPREADM_VER' , '2.1.b');
    1514include_once( SPREADM_PATH . 'spread_menus_on_public_pages.php');
    1615?>
  • extensions/spread_menus/spread_menus_on_public_pages.php

    r8235 r9252  
    66        'Dir'                           => SPREADM_DIR,
    77        'Path'                          => SPREADM_PATH,
    8         'Version'                       => SPREADM_VER,
    98        'On_picture'            => true,
    109        'Exclude'                       => array('theNBMPage','thePopuphelpPage',),     # Excluded pages
     
    1514if (!isset($conf['Spread menus']) or !is_array($conf['Spread menus'])) $conf['Spread menus'] = $default;
    1615else $conf['Spread menus'] = array_merge( $default, $conf['Spread menus'] );
    17 $conf['Spread menus']['Version'] = SPREADM_VER;
    1816
    1917if ( !function_exists( 'spread_menus_on_public_pages' ) ) {
     
    2422          if ( function_exists( 'initialize_menu') ) return false; # The current page has already the menu
    2523          global $template, $page, $conf;
     24          if (!isset($page['start'])) $page['start']=0 ;
    2625          if ( isset($page['body_id']) and in_array($page['body_id'], $conf['Spread menus']['Exclude']) ) return false;
    2726          if ( isset($page['body_id']) and $page['body_id'] == 'thePicturePage' and !$conf['Spread menus']['On_picture'] ) return false;
Note: See TracChangeset for help on using the changeset viewer.