From 7354982f2f67df979c39284c1cd831f22223a8d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Montan=CC=83ana?= Date: Tue, 27 May 2014 23:31:03 +0200 Subject: [PATCH] =?UTF-8?q?A=C3=B1ade=20la=20rama=20git=20en=20la=20pantal?= =?UTF-8?q?la=20de=20inicio=20en=20caso=20de=20que=20no=20sea=20la=20rama?= =?UTF-8?q?=20master,=20con=20un=20bot=C3=B3n=20que=20al=20pulsarlo=20sale?= =?UTF-8?q?n=20los=20cr=C3=A9ditos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AportaContenido.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AportaContenido.php b/AportaContenido.php index 29efca3..5d87c9e 100644 --- a/AportaContenido.php +++ b/AportaContenido.php @@ -251,8 +251,10 @@ class AportaContenido { $creditos = "$('#creditos').modal({keyboard: false});"; $centro = '
' . CENTRO . '
'; $tabla = $this->creaTablaAcercaDe(); + $rama_texto = trim(substr(file_get_contents('.git/HEAD'), 16)); + $rama = ($rama_texto != 'master' ? '
':''); return $mensaje . '

' . PROGRAMA . '' . - '



' . CREDITOS_CABECERA . $tabla . CREDITOS_PIE; + '

' . $rama . CREDITOS_CABECERA . $tabla . CREDITOS_PIE; case 'articulos': case 'ubicaciones': case 'test':