[pmwiki-users] Skin Search - PM plz reply...
Patrick R. Michaud
pmichaud at pobox.com
Wed Sep 27 12:36:58 CDT 2006
On Wed, Sep 27, 2006 at 12:21:13PM -0500, JB wrote:
> > But ultimately I haven't figured out what problem the "continue
> > scanning other skin directories" approach you're advocating
> > is intending to solve.
>
>
> The problem that can be solved is to make placement of a skin
> more flexible.
>
> A skin .tmpl and .css file can be palced in the same directory.
> When you move the .tmpl file out of the directory to another
> it could keep searching the array and find where it is located.
>
> $SkinLibDirs = array(
> "./pub/skins/\$Skin" => "$PubDirUrl/skins/\$Skin",
> "$FarmD/pub/skins/\$Skin" => "$PubDirUrl/skins/\$Skin",
> "$FarmD/pub/skins/\$Skin" => "$FarmPubDirUrl/skins/\$Skin");
The above definition of $SkinLibDirs doesn't make any sense --
there can only be one entry for "$FarmD/pub/skins/\$Skin" in
an array. In other words, the third line of the array is
overwriting the second (array keys have to be unique).
Pm
More information about the pmwiki-users
mailing list