Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#4 freediskspace functions.php

open
nobody
None
5
2007-04-21
2007-04-21
Anonymous
No

looks like index.php calls freediskspace with parameter $disk, however freediskspace is defined without any paremeters in functions.php

to allow $disk var from settings.php to be used here, modify .freediskspace to accept $disk

Discussion

  • modified .freediskspace function

     
    Attachments
  • Alexandru
    Alexandru
    2007-04-30

    Logged In: YES
    user_id=1329819
    Originator: NO

    I also noticed the problem and was about to submit a bug, but I read this one before.

     
  • Logged In: NO

    I'm no php expert, but adding $disk to the function freediskspace plus a $ in the disk_free_space(disk) function worked for me:

    in functions.php, just after the <?php

    replace:
    function freediskspace() {
    return (round (disk_free_space(disk)/1024/1024,2));

    with:
    function freediskspace($disk) {
    return (round (disk_free_space($disk)/1024/1024,2));