Advertisement:

Author Topic: SMF Function Database - loadTemplate(); Behind  (Read 7131 times)

Offline Labradoodle-360

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,466
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: SMF Function Database - loadTemplate(); Behind
« Reply #20 on: August 23, 2012, 03:49:41 PM »
That's because I fixed it :P The style_sheets param used to be applied to all versions and then it showed a bunch of junk because I was fixing it hahaha sorry. Does it look okay?

The quality of the responses received is directly proportional to the quality of the question asked. | My Modifications

Offline AngelinaBelle

  • On Hiatus
  • SMF Hero
  • *
  • Posts: 6,673
Re: SMF Function Database - loadTemplate(); Behind
« Reply #21 on: August 23, 2012, 04:39:55 PM »
I think it looks OK.  And I am happy to know there was a GOOD reason for the nonsense I saw.
You are the expert on whether it is correct.
As a doc writer, I will ask you this:

Quote
Example of Input: array('additional') [additional = ./Themes/default/css/additional.css]


I am not sure what this means.  This is not correct array notation.

Perhaps you want it to be array('./Themes/default/css/additional.css')  or else you want it to be array['additional'] (where array['additional'] = './Themes/default/css/additional.css')

Or perhaps you want it to be array('additional' => './Themes/default/css/additional.css')

Which is a correct example of EXACTLY what should go in the call?

Or do you really want array ('additional'), because that will cause ./Themes/default/css/additional.css to be loaded?

I am lost.
If you do what you've always done, you'll get what you've always gotten. -- Anthony Robbins

Offline AngelinaBelle

  • On Hiatus
  • SMF Hero
  • *
  • Posts: 6,673
Re: SMF Function Database - loadTemplate(); Behind
« Reply #22 on: August 23, 2012, 04:44:38 PM »
Wait.  I see.  I am looking at the function now.  you do want array ('additional') because that will cause
' . $settings[$sheet_path] . '/css/' . $sheet . '.css"

to be loaded.

How do you like it now?

http://support.simplemachines.org/function_db/index.php?action=view_function;id=61;sa=viewall
If you do what you've always done, you'll get what you've always gotten. -- Anthony Robbins

Offline Labradoodle-360

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,466
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: SMF Function Database - loadTemplate(); Behind
« Reply #23 on: August 23, 2012, 05:37:18 PM »
Very good. I knew what it was, but I didn't know how to state it quite like that in one line, it'd be nice if you could format the text.

The quality of the responses received is directly proportional to the quality of the question asked. | My Modifications