Martin Burger
|
Friday 27 August 2004 2:08:04 am
Hello, I'm using eZ publish 3.4.1 and included a hack for translating german umlauts in nice urls:
diff -u -r1.1.1.1 ezurlalias.php
--- classes/ezurlalias.php 16 Aug 2004 12:08:42 -0000 1.1.1.1
+++ classes/ezurlalias.php 27 Aug 2004 08:51:24 -0000
@@ -657,6 +657,12 @@
function convertToAlias( $urlElement, $defaultValue = false )
{
$urlElement = strtolower( $urlElement );
+
+ // HACK BY MARTIN BURGER / NETBEYOND
+ // Translate german sz and umlauts
+ $NB_trans = array ("ß" => "ss", "ä" => "ae", "ö" => "oe", "ü" => "ue", );
+ $urlElement = strtr( $urlElement, $NB_trans );
+
$urlElement = preg_replace( array( "#[^a-z0-9_ ]#",
"/ /",
"/__+/",
To use this hack I want to run the updateniceurls.php, but it fails:
php -C update/common/scripts/updateniceurls.php
Fatal error: eZ publish did not finish it's request
The execution of eZ publish was abruptly ended, the debug output is present below.
Even without the hack the script fails. Any ideas? Regards, Martin
http://www.netbeyond.de/
|