Changeset 254 for trunk/services


Ignore:
Timestamp:
May 5, 2007 8:56:36 AM (17 years ago)
Author:
quinn
Message:

Various bug fixes to make compatible with Trendease 2.0.

  • Minor CSS admin tweaks.
  • PHP Notice warnings.
  • Minor bugs fixed.
Location:
trunk/services
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/services/logs.php

    r247 r254  
    4343    'log_file' => $app->getParam('log_filename')
    4444));
    45 $tmp_prefs->set('log_file', getFormData('log'));
     45if (getFormData('log', false)) {
     46    $tmp_prefs->set('log_file', getFormData('log'));   
     47}
    4648
    4749// Titles and navigation header.
     
    230232    $app =& App::getInstance();
    231233
     234    $log = array();
     235
    232236    if (!is_file($app->getParam('log_directory') . '/' . $log_file)) {
    233237        $app->raiseMsg(sprintf(_("Log file %s not found."), $log_file), MSG_WARNING, __FILE__, __LINE__);
    234238        $app->logMsg(sprintf('Log file %s not found.', $app->getParam('log_directory') . '/' . $log_file), LOG_WARNING, __FILE__, __LINE__);
    235         return false;
     239        return $log;
    236240    }
    237241    $log = file($app->getParam('log_directory') . '/' . $log_file);
     
    244248        }
    245249    }
    246     return array_values($log);
     250    $log = array_values($log);
     251    return $log;
    247252}
    248253
     
    266271    if (is_array($list) && !empty($list)) {
    267272        sort($list);
    268         return $list;
    269     } else {
    270         return false;
    271     }
     273    }
     274    return $list;
    272275}
    273276
  • trunk/services/templates/versions_view.ihtml

    r136 r254  
    11<div id="commandbox">
     2<span class="sc-nowrap commandtext"><a href="<?php echo $app->ohref(oTxt($_SERVER['PHP_SELF'])); ?>"><?php echo _("Back to the Versions List"); ?></a></span>
    23<?php if (!getFormData('current', false)) { ?>
    34    <span class="sc-nowrap commandtext"><a href="<?php echo $app->oHREF($_SERVER['PHP_SELF'] . '?op=restore', array('version_id', 'version_title')); ?>"><?php echo _("Restore this saved version"); ?></a></span>
    4 <?php } else { ?>
    5     <span class="sc-nowrap commandtext">&nbsp;</span>
    65<?php } ?>
    76</div>
Note: See TracChangeset for help on using the changeset viewer.