Ignore:
Timestamp:
Jul 15, 2011, 6:07:43 PM (13 years ago)
Author:
nikrou
Message:

Fix incompatibility with Cooliris plugins
Use $_SERVERPATH_INFO only if defined

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/photoWidget/include/photoWidgetContent.class.php

    r7385 r11752  
    33// | photoWidget  - a plugin for Piwigo                                    |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2010 Nicolas Roudaire             http://www.nikrou.net  |
     5// | Copyright(C) 2010-2011 Nicolas Roudaire        http://www.nikrou.net  |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
     
    4343
    4444    $match_content = $_SERVER['QUERY_STRING'];
    45     if (PHPWG_ROOT_PATH != $page['root_path']) {
     45    if (PHPWG_ROOT_PATH != $page['root_path'] && !empty($_SERVER['PATH_INFO'])) {
    4646      $match_content = $_SERVER['PATH_INFO'];
    4747    }
Note: See TracChangeset for help on using the changeset viewer.