Plugin Directory

Changeset 909632


Ignore:
Timestamp:
05/07/2014 10:54:35 AM (12 years ago)
Author:
ianfhunter
Message:

fixed paths?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wordquest/trunk/wordpress-rpg.php

    r909628 r909632  
    239239
    240240function idle_messages(){
    241     $file = WP_PLUGIN_DIR."/wordquest/idle.rpg";
     241    $file = plugins_url()."/wordquest/idle.rpg";
    242242    $contents = explode("\n",file_get_contents($file));
    243243    return $contents;
     
    278278    #Credit: http://leon-murayami.deviantart.com/art/Illusion-of-Gaia-Will-XP-402827050
    279279
    280     echo " <img src='".content_url()."plugins/wordquest/levels/".get_heroavatar() .".gif' /> <div id='idle_msg'>" . "Killing some slimes... " . "</div>" . "Current Quest: Write about '" . get_quest() . "'";
     280    echo " <img src='".plugins_url()."/wordquest/levels/".get_heroavatar() .".gif' /> <div id='idle_msg'>" . "Killing some slimes... " . "</div>" . "Current Quest: Write about '" . get_quest() . "'";
    281281    $params = array(
    282282      'messages' => idle_messages(),
Note: See TracChangeset for help on using the changeset viewer.