Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GSgallery 2.0 - Simple Image Gallery Plugin (Square It)
Hello,

for a plugin compatible with php <5.2 : (PATHINFO_EXTENSION don't exist)

plugin\squareit-gallery\inc\gsg_plugins.inc.php - line 19:

before :
Code:
$gsg_pathExt = pathinfo($gsgfile,PATHINFO_EXTENSION );
    $gsg_pathName= pathinfo($gsgfile,PATHINFO_FILENAME );

after :
Code:
$temp = pathinfo($gsgfile);
    $gsg_pathExt = pathinfo($gsgfile,PATHINFO_EXTENSION );
    $gsg_pathName= $temp['filename'] = substr($temp['basename'],0 ,strlen($temp['basename'])-strlen($gsg_pathExt)-1);
Reply


Messages In This Thread
GSgallery 2.0 - Simple Image Gallery Plugin (Square It) - by madvic - 2011-03-18, 00:06:26



Users browsing this thread: 1 Guest(s)