Remove file extension in v. 4.1

Admiror Gallery is free extension for Joomla! based websites. Admiror Gallery is all in one, a simple and instant solution for rendering image gallery from folder with images, but very flexible and adaptable.
Post Reply
Message
Author
acymru
Posts: 2
Joined: Mon Apr 30, 2012 6:39 pm

Remove file extension in v. 4.1

#1 Post by acymru »

I'd like to remove the file extension from the image caption. I tried replacing

Code: Select all

$this->descArray[$f] = $f;
with

Code: Select all

$this->descArray[$f] = ag_removExtension($f);
in agGallery.php as described in this forum post for the Joomla 1.5 version:
http://www.vasiljevski.com/forum/viewto ... f=20&t=319
but I get the error
Fatal error: Call to undefined function ag_removExtension()
with a line # reference to the line in agGallery.php containing the changed code.

Any tips?

Thank you

Admiror Gallery 5 - Fundraising Campaign

User avatar
Vasiljevski
Developer
Developer
Posts: 1258
Joined: Sat Aug 14, 2010 9:31 pm
Location: Novi Sad, Serbia
Contact:

Re: Remove file extension in v. 4.1

#2 Post by Vasiljevski »

Try using

Code: Select all

$this->descArray[$f] = agHelper::ag_removExtension($f)
Because "ag_removExtension($f)" is defined in a class agHelper and we access the methods statically from it :)
Help Admiror Gallery become even better,
give us a review on JED

acymru
Posts: 2
Joined: Mon Apr 30, 2012 6:39 pm

Re: Remove file extension in v. 4.1

#3 Post by acymru »

Perfect. Thank you very much.

User avatar
ParakasaLomo
Posts: 1
Joined: Sun Sep 09, 2012 3:54 pm
Location: Jogeva, Estonia

Re: Remove file extension in v. 4.1

#4 Post by ParakasaLomo »

Thank you. This fixed the issue for me :D
Multi multa; nemo omnia novit - what does mba stand for

Post Reply