/[cvs]/nfo/php/libs/org.netfrag.flib/utils/shortcuts.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.flib/utils/shortcuts.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by joko, Thu Feb 13 21:55:52 2003 UTC revision 1.6 by jonen, Mon Oct 25 17:14:17 2004 UTC
# Line 3  Line 3 
3  ##    $Id$  ##    $Id$
4  ##    -----------------------------------------------------------------------------  ##    -----------------------------------------------------------------------------
5  ##    $Log$  ##    $Log$
6    ##    Revision 1.6  2004/10/25 17:14:17  jonen
7    ##    + added function to get language-related image
8    ##
9    ##    Revision 1.5  2003/04/11 01:29:13  joko
10    ##    moved function 'logp' to org.netfrag.glib:utils/extensions.php
11    ##
12  ##    Revision 1.4  2003/02/13 21:55:52  joko  ##    Revision 1.4  2003/02/13 21:55:52  joko
13  ##    + logging now via the global app instance  ##    + logging now via the global app instance
14  ##  ##
# Line 54  Line 60 
60      return $site->getLink( $key, $attribs );      return $site->getLink( $key, $attribs );
61    }    }
62    
 // wrapper-function for getting the logger instance  
   function logp($string, $level = PEAR_LOG_DEBUG) {  
     global $app;  
     $app->log($string, $level);  
   }  
   
63    function dprint($message, $level = E_USER_NOTICE) {    function dprint($message, $level = E_USER_NOTICE) {
64      //debug_append($message, $level);      //debug_append($message, $level);
65      trigger_error($message, $level);      trigger_error($message, $level);
# Line 69  Line 69 
69      global $site;      global $site;
70      return $site->template->get("lt:$identifier", $data);      return $site->template->get("lt:$identifier", $data);
71    }    }
72      
73      function getltimg($prefix, $postfix) {
74        global $site;
75        $langkey = $site->localetext->getCurrentLanguage();
76        return $prefix . "_" . $langkey . $postfix;
77      }
78    
79  ?>  ?>

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.6

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed