* some comments (using # instead of /* */ )
[lhc/web/wiklou.git] / includes / SkinPHPTal.php
index 35ff06d..4fe28c4 100644 (file)
@@ -26,6 +26,8 @@
 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 # http://www.gnu.org/copyleft/gpl.html
 
+
+# This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
 if( defined( "MEDIAWIKI" ) ) {
        require_once "GlobalFunctions.php";
        global $IP;
@@ -204,7 +206,7 @@ if( defined( "MEDIAWIKI" ) ) {
                        $tpl->set( "reporttime", $out->reportTime() );
                        $tpl->set( "sitenotice", $wgSiteNotice );
 
-                       $printfooter = "<div class=\"printfooter\">\n" . $this->printFooter() . "</div>\n";
+                       $printfooter = "<div class=\"printfooter\">\n" . $this->printSource() . "</div>\n";
                        $out->mBodytext .= $printfooter ;
                        $tpl->setRef( "bodytext", $out->mBodytext );
 
@@ -603,7 +605,6 @@ if( defined( "MEDIAWIKI" ) ) {
                        $s .= wfMsg(ucfirst($this->skinname).'.js');
                        return $s;
                }
-
        }
 
        class SkinDaVinci extends SkinPHPTal {
@@ -633,5 +634,15 @@ if( defined( "MEDIAWIKI" ) ) {
                        $this->skinname = "myskin";
                }
        }
+
+       class SkinChick extends SkinPHPTal {
+               function initPage( &$out ) {
+                       SkinPHPTal::initPage( $out );
+                       $this->skinname = "chick";
+                       $this->template = "xhtml_minimal";
+               }
+               function suppressUrlExpansion() { return true; }
+               function printSource() { return ""; }
+       }
 }
 ?>