[Koha-devel] [Bug 297] Images missing on View Account page

Thien Ho ctho at sdf.lonestar.org
Wed Apr 23 08:15:11 CEST 2003


On 23 Apr 2003 bugzilla-daemon at wilbur.katipo.co.nz wrote:

> Date: 23 Apr 2003 12:47:00 -0000
> From: bugzilla-daemon at wilbur.katipo.co.nz
> To: koha-devel at lists.sourceforge.net
> Subject: [Koha-devel] [Bug 297] Images missing on View Account page
>
> http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=297

I found that there are lots of files (.pl, .inc, .tmpl) with wrong path
for image file. I haven't fixed error in .pl files yet. So I search for
all files with those errors, then add <TMPL_VAR NAME='themelang'> to its
path:

shell $ find path_to_koha/ -type f -exec grep "=\"\/images" {} \; -fprint
image.lst


Then remove all lines ending with ".pl".
Next, use Perl to add <TMPL_VAR NAME='themelang'>:

shell $ for file in `cat image.lst`; do perl -pi -e
"s/=\"\/images/=\"<TMPL_VAR NAME='themelang'>\/images/g" $file; done


Repeat again for links without double-quotes (ie. <img src=/images...>),
and possibly, links with single-quote.


Thien
ctho at sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org





More information about the Koha-devel mailing list