public function __construct() { global $globals; call_user_func_array('parent::__construct', func_get_args()); if ($globals->debug) { Less::make(); } }
#!/usr/bin/php -q <?php /*************************************************************************** * Copyright (C) 2004-2012 Binet Réseau * * http://br.binets.fr/ * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ***************************************************************************/ /* * When not in debug mode, this script helps to rebuild * the css & tpl files after a fetch */ require_once dirname(__FILE__) . '/connect.db.inc.php'; echo "Less to Css \n"; Less::make(); echo "Purging tpl's spool \n"; exec('rm ../spool/templates_c/* -f'); // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: