Show
Ignore:
Timestamp:
10/01/07 14:33:36 (5 years ago)
Author:
benoitg
Message:
  • Commited slightly modified patch by Robin Jones to implement #184
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/classes/MainUI.php

    r1290 r1300  
    436436     * 
    437437     * @param string Stylesheet URL 
    438      * 
    439      * @return void 
    440      * 
    441      * @access public 
    442      */ 
    443     public function appendStylesheetURL($stylesheet_url) { 
     438     *@param media The target media of the selected strylesheet (print, screen,etc.) 
     439     * @return void 
     440     * 
     441     * @access public 
     442     */ 
     443    public function appendStylesheetURL($stylesheet_url, $media=null) { 
    444444        //Note:  using the URL as value AND key will remove duplicate while keeping the stylesheet inclusion order, because of the way foreach is implemented in PHP 
    445         $this->stylesheetUrlArray[$stylesheet_url] = $stylesheet_url; 
     445        $this->stylesheetUrlArray[$stylesheet_url]['href'] = $stylesheet_url; 
     446                $this->stylesheetUrlArray[$stylesheet_url]['media'] = $media; 
    446447    } 
    447448 
     
    544545        // Asign base CSS and theme pack CSS stylesheet 
    545546        $this->appendStylesheetURL(BASE_THEME_URL . STYLESHEET_NAME); 
     547                $this->appendStylesheetURL(BASE_THEME_URL . PRINT_STYLESHEET_NAME, 'print'); 
    546548        $networkThemePack = Network :: getCurrentNetwork()->getThemePack(); 
    547549        if ($networkThemePack) {