Commit 4b5191882642aac6da06ebb76e66c91b13817f6e
1 parent
0757b4ed
Fixed tutorial typos.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@9738 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
16 additions
and
16 deletions
tutorials/KTAPI/KTAPI.pkg
| ... | ... | @@ -27,22 +27,22 @@ |
| 27 | 27 | <para> |
| 28 | 28 | This is KTAPI example one. |
| 29 | 29 | <example><title>Example 1</title> |
| 30 | -32 <programlisting role="tutorial"> | |
| 31 | -33 | |
| 32 | -34 public function KTAPI_Error($msg, $obj = null) | |
| 33 | -35 { | |
| 34 | -36 if (PEAR::isError($obj)) | |
| 35 | -37 { | |
| 36 | -38 parent::PEAR_Error($msg . ' - ' . $obj->getMessage()); | |
| 37 | -39 } | |
| 38 | -40 else | |
| 39 | -41 { | |
| 40 | -42 parent::PEAR_Error($msg); | |
| 41 | -43 } | |
| 42 | -44 } | |
| 43 | -45 | |
| 44 | -46 </programlisting> | |
| 45 | -47 </example> | |
| 30 | + <programlisting role="tutorial"> | |
| 31 | + | |
| 32 | + public function KTAPI_Error($msg, $obj = null) | |
| 33 | + { | |
| 34 | + if (PEAR::isError($obj)) | |
| 35 | + { | |
| 36 | + parent::PEAR_Error($msg . ' - ' . $obj->getMessage()); | |
| 37 | + } | |
| 38 | + else | |
| 39 | + { | |
| 40 | + parent::PEAR_Error($msg); | |
| 41 | + } | |
| 42 | + } | |
| 43 | + | |
| 44 | + </programlisting> | |
| 45 | + </example> | |
| 46 | 46 | </para> |
| 47 | 47 | </refsect3> |
| 48 | 48 | </refsect2> | ... | ... |