From d5ff3be6b95cefeba18d5e3a00e46c727b5f86ad Mon Sep 17 00:00:00 2001 From: james Date: Tue, 26 Aug 2008 21:06:05 +0000 Subject: [PATCH] Use page text description instead of the database page text name on the page text editor list. (BUG 198) --- config/pagetexts.php | 4 ++-- db/db.code.version.txt | 2 +- db/db.update.112.sql | 5 +++++ 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 db/db.update.112.sql diff --git a/config/pagetexts.php b/config/pagetexts.php index a97c540..f0f613e 100644 --- a/config/pagetexts.php +++ b/config/pagetexts.php @@ -124,10 +124,10 @@ echo ""; $q=mysql_query("SELECT * FROM pagetext WHERE year='".$config['FAIRYEAR']."' AND lang='".$config['default_language']."' ORDER BY textname"); - echo ""; + echo ""; while($r=mysql_fetch_object($q)) { - echo ""; + echo ""; if($r->lastupdate=="0000-00-00 00:00:00") $lastupdate="Never"; else $lastupdate=$r->lastupdate; echo ""; diff --git a/db/db.code.version.txt b/db/db.code.version.txt index 58c9bdf..194b81c 100644 --- a/db/db.code.version.txt +++ b/db/db.code.version.txt @@ -1 +1 @@ -111 +112 diff --git a/db/db.update.112.sql b/db/db.update.112.sql new file mode 100644 index 0000000..6cea2f9 --- /dev/null +++ b/db/db.update.112.sql @@ -0,0 +1,5 @@ +ALTER TABLE `pagetext` ADD `textdescription` VARCHAR( 255 ) NOT NULL AFTER `textname` ; +UPDATE `pagetext` SET `textdescription`='Participant registration main page instructions' WHERE textname='register_participants_main_instructions'; +UPDATE `pagetext` SET `textdescription`='Judge registration instructions for Invite-Only mode' WHERE textname='register_judges_invite'; +UPDATE `pagetext` SET `textdescription`='Volunteer registration instructions for Invite-Only mode' WHERE textname='register_volunteer_invite'; +UPDATE `pagetext` SET `textdescription`='School access login page' WHERE textname='schoolaccess';
".i18n("Page Text Name")."".i18n("Last Update")."
".i18n("Page Text Description")."".i18n("Last Update")."
textname\">$r->textname
textname\">$r->textdescription$lastupdate