On Thursday 29 March 2012 16:49:49 Ulf Bro wrote: > But as soon as I uncomment the line in local/config.php where it says: > > $PageLogoUrl = "..." > > nothing works any more. No page is displayed. I had thoght of something > like this: > > $PageLogoUrl = "$PubDirUrl/skins/myskin/images/Logo.png" > > or alternatively: > > $PageLogoUrl = "http://localhost/pub/skins/myskin/images/Logo.png" > > which definitely both do not work.
You may try adding a semicolon ";" at the end of your instructions or commands in PHP. For example, this will probably work: $PageLogoUrl = "http://localhost/pub/skins/myskin/images/Logo.png"; Second, the $PubDirUrl variable may be yet undefined early in config.php, so if you use it, it is recommended to do either: $PageLogoUrl = "\$PubDirUrl/skins/myskin/images/Logo.png"; (inside double quotes, a backslash \ will not allow for the variable to be expanded at this point, it will be expanded later in the skin) or: $PageLogoUrl = '$PubDirUrl/skins/myskin/images/Logo.png'; (inside single quotes, variables are not expanded, so this one will be expanded later in the skin). Now, the "second" part is for your specific case, it may be not adapted for another case. I can recommend reading a little about the PHP programming language in order to get comfortable with the strings and variables. The "semicolon" part can be used in other cases. Petko _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
