[freeciv-i18n] Re: changes to www.freeciv.org
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Tue, Oct 08, 2002 at 08:34:42PM +0200, Reinier Post wrote:
> When testing with a new Apache and PHP installation, it turned out that
> file_exist() no longer succeeds on relative filenames. This broke
> a couple of pages.
>
> To repair it I have created a function my_file_exists(), defined it
> in a central place, and made all the files that called file_exists()
> it use my_file_exists() instead. These files now also have to
> include the file in which my_file_exists() is defined.
>
> I also had to change include() yo include_omnly() otherwise the
> function would be defined twice, causing a PHP error.
>
> This is a change to 42 files and as usual I did not make any changes to
> the translated websites. It is not necessary to make all these changes
> by hand - for example, to change all the include() calls
> to include_only() calls the following command can be used:
>
> fgrep -l include\( `find . -name \*phtml` | xargs \
> perl -pi.includemulti -e 's/include\(/include_once\(/g'
>
> Thanks to Paul for assistance.
>
> The exact cvs diff is attached.
[no more]
There were some small bugs in my effort, these have now been fixed,
at least www.freeciv.org/de is working properly again.
--
Reinier
|
|